public static final class SMFTriangles.Builder extends Object
SMFTriangles.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
SMFTriangles |
build()
Builds a new
SMFTriangles. |
SMFTriangles.Builder |
from(SMFTrianglesType instance)
Fill a builder with attribute values from the provided
SMFTrianglesType instance. |
SMFTriangles.Builder |
setTriangleCount(long triangleCount)
Initializes the value for the
triangleCount attribute. |
SMFTriangles.Builder |
setTriangleIndexSizeBits(int triangleIndexSizeBits)
Initializes the value for the
triangleIndexSizeBits attribute. |
public final SMFTriangles.Builder from(SMFTrianglesType instance)
SMFTrianglesType instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final SMFTriangles.Builder setTriangleCount(long triangleCount)
triangleCount attribute.
If not set, this attribute will have a default value as returned by the initializer of triangleCount.
triangleCount - The value for triangleCountthis builder for use in a chained invocationpublic final SMFTriangles.Builder setTriangleIndexSizeBits(int triangleIndexSizeBits)
triangleIndexSizeBits attribute.
If not set, this attribute will have a default value as returned by the initializer of triangleIndexSizeBits.
triangleIndexSizeBits - The value for triangleIndexSizeBitsthis builder for use in a chained invocationpublic SMFTriangles build()
SMFTriangles.IllegalStateException - if any required attributes are missingCopyright © 2017 <code@io7m.com> http://io7m.com