@Generated(value={"Immutables.generator","R2MeshTriangleType"}) public final class R2MeshTriangle extends Object implements R2MeshTriangleType
Modifier and Type | Method and Description |
---|---|
static R2MeshTriangle |
copyOf(R2MeshTriangleType instance)
Creates an immutable copy of a
R2MeshTriangleType value. |
boolean |
equals(Object another)
This instance is equal to all instances of
R2MeshTriangle that have equal attribute values. |
int |
hashCode()
Returns a precomputed-on-construction hash code from attributes:
v0 , v1 , v2 . |
static R2MeshTriangle |
of(long v0,
long v1,
long v2)
Construct a new immutable
R2MeshTriangle instance. |
String |
toString()
Prints the immutable value
R2MeshTriangle with attribute values. |
long |
v0() |
long |
v1() |
long |
v2() |
R2MeshTriangle |
withV0(long value)
Copy the current immutable object by setting a value for the
v0 attribute. |
R2MeshTriangle |
withV1(long value)
Copy the current immutable object by setting a value for the
v1 attribute. |
R2MeshTriangle |
withV2(long value)
Copy the current immutable object by setting a value for the
v2 attribute. |
public long v0()
v0
in interface R2MeshTriangleType
public long v1()
v1
in interface R2MeshTriangleType
public long v2()
v2
in interface R2MeshTriangleType
public final R2MeshTriangle withV0(long value)
v0
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for v0this
objectpublic final R2MeshTriangle withV1(long value)
v1
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for v1this
objectpublic final R2MeshTriangle withV2(long value)
v2
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for v2this
objectpublic boolean equals(Object another)
R2MeshTriangle
that have equal attribute values.public int hashCode()
v0
, v1
, v2
.public String toString()
R2MeshTriangle
with attribute values.public static R2MeshTriangle of(long v0, long v1, long v2)
R2MeshTriangle
instance.v0
- The value for the v0
attributev1
- The value for the v1
attributev2
- The value for the v2
attributepublic static R2MeshTriangle copyOf(R2MeshTriangleType instance)
R2MeshTriangleType
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