@Generated(value={"Immutables.generator","SMFTrianglesType"}) public final class SMFTriangles extends Object implements SMFTrianglesType
| Modifier and Type | Class and Description |
|---|---|
static class |
SMFTriangles.Builder
Builds instances of type
SMFTriangles. |
| Modifier and Type | Method and Description |
|---|---|
static SMFTriangles.Builder |
builder()
Creates a builder for
SMFTriangles. |
static SMFTriangles |
copyOf(SMFTrianglesType instance)
Creates an immutable copy of a
SMFTrianglesType value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SMFTriangles that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
triangleCount, triangleIndexSizeBits, triangleIndexSizeOctets, triangleSizeOctets. |
static SMFTriangles |
of(long triangleCount,
int triangleIndexSizeBits)
Construct a new immutable
SMFTriangles instance. |
String |
toString()
Prints the immutable value
SMFTriangles with attribute values. |
long |
triangleCount() |
int |
triangleIndexSizeBits() |
int |
triangleIndexSizeOctets() |
int |
triangleSizeOctets() |
SMFTriangles |
withTriangleCount(long value)
Copy the current immutable object by setting a value for the
triangleCount attribute. |
SMFTriangles |
withTriangleIndexSizeBits(int value)
Copy the current immutable object by setting a value for the
triangleIndexSizeBits attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcheckPreconditionspublic long triangleCount()
triangleCount in interface SMFTrianglesTypepublic int triangleIndexSizeBits()
triangleIndexSizeBits in interface SMFTrianglesTypepublic int triangleIndexSizeOctets()
triangleIndexSizeOctets in interface SMFTrianglesTypepublic int triangleSizeOctets()
triangleSizeOctets in interface SMFTrianglesTypepublic final SMFTriangles 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 SMFTriangles 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)
SMFTriangles that have equal attribute values.public int hashCode()
triangleCount, triangleIndexSizeBits, triangleIndexSizeOctets, triangleSizeOctets.public String toString()
SMFTriangles with attribute values.public static SMFTriangles of(long triangleCount, int triangleIndexSizeBits)
SMFTriangles instance.triangleCount - The value for the triangleCount attributetriangleIndexSizeBits - The value for the triangleIndexSizeBits attributepublic static SMFTriangles copyOf(SMFTrianglesType instance)
SMFTrianglesType 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 SMFTriangles.Builder builder()
SMFTriangles.Copyright © 2017 <code@io7m.com> http://io7m.com