@Generated(value={"Immutables.generator","R2MeshBasicVertexType"}) public final class R2MeshBasicVertex extends Object implements R2MeshBasicVertexType
| Modifier and Type | Method and Description |
|---|---|
static R2MeshBasicVertex |
copyOf(R2MeshBasicVertexType instance)
Creates an immutable copy of a
R2MeshBasicVertexType value. |
boolean |
equals(Object another)
This instance is equal to all instances of
R2MeshBasicVertex that have equal attribute values. |
int |
hashCode()
Returns a precomputed-on-construction hash code from attributes:
positionIndex, normalIndex, uvIndex. |
long |
normalIndex() |
static R2MeshBasicVertex |
of(long positionIndex,
long normalIndex,
long uvIndex)
Construct a new immutable
R2MeshBasicVertex instance. |
long |
positionIndex() |
String |
toString()
Prints the immutable value
R2MeshBasicVertex with attribute values. |
long |
uvIndex() |
R2MeshBasicVertex |
withNormalIndex(long value)
Copy the current immutable object by setting a value for the
normalIndex attribute. |
R2MeshBasicVertex |
withPositionIndex(long value)
Copy the current immutable object by setting a value for the
positionIndex attribute. |
R2MeshBasicVertex |
withUvIndex(long value)
Copy the current immutable object by setting a value for the
uvIndex attribute. |
public long positionIndex()
positionIndex in interface R2MeshBasicVertexTypepublic long normalIndex()
normalIndex in interface R2MeshBasicVertexTypepublic long uvIndex()
uvIndex in interface R2MeshBasicVertexTypepublic final R2MeshBasicVertex withPositionIndex(long value)
positionIndex attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for positionIndexthis objectpublic final R2MeshBasicVertex withNormalIndex(long value)
normalIndex attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for normalIndexthis objectpublic final R2MeshBasicVertex withUvIndex(long value)
uvIndex attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for uvIndexthis objectpublic boolean equals(Object another)
R2MeshBasicVertex that have equal attribute values.public int hashCode()
positionIndex, normalIndex, uvIndex.public String toString()
R2MeshBasicVertex with attribute values.public static R2MeshBasicVertex of(long positionIndex, long normalIndex, long uvIndex)
R2MeshBasicVertex instance.positionIndex - The value for the positionIndex attributenormalIndex - The value for the normalIndex attributeuvIndex - The value for the uvIndex attributepublic static R2MeshBasicVertex copyOf(R2MeshBasicVertexType instance)
R2MeshBasicVertexType 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 copyCopyright © 2017 <code@io7m.com> http://io7m.com