@Generated(value={"Immutables.generator","SMFByteBufferPackedTrianglesType"}) public final class SMFByteBufferPackedTriangles extends Object implements SMFByteBufferPackedTrianglesType
| Modifier and Type | Class and Description |
|---|---|
static class |
SMFByteBufferPackedTriangles.Builder
Builds instances of type
SMFByteBufferPackedTriangles. |
| Modifier and Type | Method and Description |
|---|---|
static SMFByteBufferPackedTriangles.Builder |
builder()
Creates a builder for
SMFByteBufferPackedTriangles. |
ByteBuffer |
byteBuffer() |
static SMFByteBufferPackedTriangles |
copyOf(SMFByteBufferPackedTrianglesType instance)
Creates an immutable copy of a
SMFByteBufferPackedTrianglesType value. |
com.io7m.jpra.runtime.java.JPRACursor1DType<SMFByteBufferIntegerUnsigned3Type> |
cursor() |
boolean |
equals(Object another)
This instance is equal to all instances of
SMFByteBufferPackedTriangles that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
byteBuffer, triangleCount, triangleIndexSizeBits. |
static SMFByteBufferPackedTriangles |
of(ByteBuffer byteBuffer,
long triangleCount,
int triangleIndexSizeBits)
Construct a new immutable
SMFByteBufferPackedTriangles instance. |
String |
toString()
Prints the immutable value
SMFByteBufferPackedTriangles with attribute values. |
long |
triangleCount() |
int |
triangleIndexSizeBits() |
int |
triangleIndexSizeOctets() |
int |
triangleSizeBits() |
int |
triangleSizeOctets() |
SMFByteBufferPackedTriangles |
withByteBuffer(ByteBuffer value)
Copy the current immutable object by setting a value for the
byteBuffer attribute. |
SMFByteBufferPackedTriangles |
withTriangleCount(long value)
Copy the current immutable object by setting a value for the
triangleCount attribute. |
SMFByteBufferPackedTriangles |
withTriangleIndexSizeBits(int value)
Copy the current immutable object by setting a value for the
triangleIndexSizeBits attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcheckPreconditionspublic ByteBuffer byteBuffer()
byteBuffer in interface SMFByteBufferPackedTrianglesTypepublic long triangleCount()
triangleCount in interface SMFByteBufferPackedTrianglesTypepublic int triangleIndexSizeBits()
triangleIndexSizeBits in interface SMFByteBufferPackedTrianglesTypepublic final SMFByteBufferPackedTriangles withByteBuffer(ByteBuffer value)
byteBuffer attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for byteBufferthis objectpublic final SMFByteBufferPackedTriangles withTriangleCount(long value)
triangleCount attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for triangleCountthis objectpublic final SMFByteBufferPackedTriangles withTriangleIndexSizeBits(int value)
triangleIndexSizeBits attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for triangleIndexSizeBitsthis objectpublic boolean equals(Object another)
SMFByteBufferPackedTriangles that have equal attribute values.public int hashCode()
byteBuffer, triangleCount, triangleIndexSizeBits.public String toString()
SMFByteBufferPackedTriangles with attribute values.public int triangleIndexSizeOctets()
Returns a lazily initialized value of the triangleIndexSizeOctets attribute.
Initialized once and only once and stored for subsequent access with proper synchronization.
triangleIndexSizeOctets in interface SMFByteBufferPackedTrianglesTypel.name attributepublic int triangleSizeBits()
Returns a lazily initialized value of the triangleSizeBits attribute.
Initialized once and only once and stored for subsequent access with proper synchronization.
triangleSizeBits in interface SMFByteBufferPackedTrianglesTypel.name attributepublic int triangleSizeOctets()
Returns a lazily initialized value of the triangleSizeOctets attribute.
Initialized once and only once and stored for subsequent access with proper synchronization.
triangleSizeOctets in interface SMFByteBufferPackedTrianglesTypel.name attributepublic com.io7m.jpra.runtime.java.JPRACursor1DType<SMFByteBufferIntegerUnsigned3Type> cursor()
Returns a lazily initialized value of the cursor attribute.
Initialized once and only once and stored for subsequent access with proper synchronization.
cursor in interface SMFByteBufferPackedTrianglesTypel.name attributepublic static SMFByteBufferPackedTriangles of(ByteBuffer byteBuffer, long triangleCount, int triangleIndexSizeBits)
SMFByteBufferPackedTriangles instance.byteBuffer - The value for the byteBuffer attributetriangleCount - The value for the triangleCount attributetriangleIndexSizeBits - The value for the triangleIndexSizeBits attributepublic static SMFByteBufferPackedTriangles copyOf(SMFByteBufferPackedTrianglesType instance)
SMFByteBufferPackedTrianglesType 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 SMFByteBufferPackedTriangles.Builder builder()
SMFByteBufferPackedTriangles.Copyright © 2017 <code@io7m.com> http://io7m.com