@Generated(value={"Immutables.generator","SMFByteBufferPackedMeshType"}) public final class SMFByteBufferPackedMesh extends Object implements SMFByteBufferPackedMeshType
| Modifier and Type | Class and Description |
|---|---|
static class |
SMFByteBufferPackedMesh.Builder
Builds instances of type
SMFByteBufferPackedMesh. |
| Modifier and Type | Method and Description |
|---|---|
javaslang.collection.Seq<SMFByteBufferPackedAttributeSet> |
attributeSets() |
javaslang.collection.SortedMap<Integer,SMFByteBufferPackedAttributeSet> |
attributeSetsByID() |
static SMFByteBufferPackedMesh.Builder |
builder()
Creates a builder for
SMFByteBufferPackedMesh. |
static SMFByteBufferPackedMesh |
copyOf(SMFByteBufferPackedMeshType instance)
Creates an immutable copy of a
SMFByteBufferPackedMeshType value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SMFByteBufferPackedMesh that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
attributeSets, triangles, header, attributeSetsByID. |
SMFHeader |
header() |
static SMFByteBufferPackedMesh |
of(javaslang.collection.Seq<SMFByteBufferPackedAttributeSet> attributeSets,
Optional<SMFByteBufferPackedTriangles> triangles,
SMFHeader header)
Construct a new immutable
SMFByteBufferPackedMesh instance. |
String |
toString()
Prints the immutable value
SMFByteBufferPackedMesh with attribute values. |
Optional<SMFByteBufferPackedTriangles> |
triangles() |
SMFByteBufferPackedMesh |
withAttributeSets(javaslang.collection.Seq<SMFByteBufferPackedAttributeSet> value) |
SMFByteBufferPackedMesh |
withHeader(SMFHeader value)
Copy the current immutable object by setting a value for the
header attribute. |
SMFByteBufferPackedMesh |
withTriangles(Optional<? extends SMFByteBufferPackedTriangles> optional)
Copy the current immutable object by setting an optional value for the
triangles attribute. |
SMFByteBufferPackedMesh |
withTriangles(SMFByteBufferPackedTriangles value)
Copy the current immutable object by setting a present value for the optional
triangles attribute. |
public javaslang.collection.Seq<SMFByteBufferPackedAttributeSet> attributeSets()
attributeSets in interface SMFByteBufferPackedMeshTypepublic Optional<SMFByteBufferPackedTriangles> triangles()
triangles in interface SMFByteBufferPackedMeshTypepublic SMFHeader header()
header in interface SMFByteBufferPackedMeshTypepublic javaslang.collection.SortedMap<Integer,SMFByteBufferPackedAttributeSet> attributeSetsByID()
attributeSetsByID in interface SMFByteBufferPackedMeshTypepublic SMFByteBufferPackedMesh withAttributeSets(javaslang.collection.Seq<SMFByteBufferPackedAttributeSet> value)
public final SMFByteBufferPackedMesh withTriangles(SMFByteBufferPackedTriangles value)
triangles attribute.value - The value for trianglesthis objectpublic final SMFByteBufferPackedMesh withTriangles(Optional<? extends SMFByteBufferPackedTriangles> optional)
triangles attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for trianglesthis objectpublic final SMFByteBufferPackedMesh withHeader(SMFHeader value)
header attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for headerthis objectpublic boolean equals(Object another)
SMFByteBufferPackedMesh that have equal attribute values.public int hashCode()
attributeSets, triangles, header, attributeSetsByID.public String toString()
SMFByteBufferPackedMesh with attribute values.public static SMFByteBufferPackedMesh of(javaslang.collection.Seq<SMFByteBufferPackedAttributeSet> attributeSets, Optional<SMFByteBufferPackedTriangles> triangles, SMFHeader header)
SMFByteBufferPackedMesh instance.attributeSets - The value for the attributeSets attributetriangles - The value for the triangles attributeheader - The value for the header attributepublic static SMFByteBufferPackedMesh copyOf(SMFByteBufferPackedMeshType instance)
SMFByteBufferPackedMeshType value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static SMFByteBufferPackedMesh.Builder builder()
SMFByteBufferPackedMesh.Copyright © 2017 <code@io7m.com> http://io7m.com