public static final class SMFByteBufferPackedMesh.Builder extends Object
SMFByteBufferPackedMesh.
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.
public final SMFByteBufferPackedMesh.Builder from(SMFByteBufferPackedMeshType instance)
SMFByteBufferPackedMeshType 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 SMFByteBufferPackedMesh.Builder addAttributeSets(SMFByteBufferPackedAttributeSet element)
public SMFByteBufferPackedMesh.Builder addAllAttributeSets(Iterable<SMFByteBufferPackedAttributeSet> element)
public SMFByteBufferPackedMesh.Builder setAttributeSets(javaslang.collection.Seq<SMFByteBufferPackedAttributeSet> elements)
public SMFByteBufferPackedMesh.Builder setIterableAttributeSets(Iterable<SMFByteBufferPackedAttributeSet> elements)
public final SMFByteBufferPackedMesh.Builder setTriangles(SMFByteBufferPackedTriangles triangles)
triangles to triangles.triangles - The value for trianglesthis builder for chained invocationpublic final SMFByteBufferPackedMesh.Builder setTriangles(Optional<? extends SMFByteBufferPackedTriangles> triangles)
triangles to triangles.triangles - The value for trianglesthis builder for use in a chained invocationpublic final SMFByteBufferPackedMesh.Builder setHeader(SMFHeader header)
header attribute.header - The value for headerthis builder for use in a chained invocationpublic SMFByteBufferPackedMesh build()
SMFByteBufferPackedMesh.IllegalStateException - if any required attributes are missingCopyright © 2017 <code@io7m.com> http://io7m.com