@Generated(value={"Immutables.generator","R2DebugCubeInstanceType"}) public final class R2DebugCubeInstance extends Object implements R2DebugCubeInstanceType
| Modifier and Type | Class and Description |
|---|---|
static class |
R2DebugCubeInstance.Builder
Builds instances of type
R2DebugCubeInstance. |
| Modifier and Type | Method and Description |
|---|---|
static R2DebugCubeInstance.Builder |
builder()
Creates a builder for
R2DebugCubeInstance. |
com.io7m.jtensors.parameterized.PVectorI4F<R2SpaceRGBAType> |
color() |
static R2DebugCubeInstance |
copyOf(R2DebugCubeInstanceType instance)
Creates an immutable copy of a
R2DebugCubeInstanceType value. |
boolean |
equals(Object another)
This instance is equal to all instances of
R2DebugCubeInstance that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
transform, color. |
static R2DebugCubeInstance |
of(R2TransformReadableType transform,
com.io7m.jtensors.parameterized.PVectorI4F<R2SpaceRGBAType> color)
Construct a new immutable
R2DebugCubeInstance instance. |
String |
toString()
Prints the immutable value
R2DebugCubeInstance with attribute values. |
R2TransformReadableType |
transform() |
R2DebugCubeInstance |
withColor(com.io7m.jtensors.parameterized.PVectorI4F<R2SpaceRGBAType> value)
Copy the current immutable object by setting a value for the
color attribute. |
R2DebugCubeInstance |
withTransform(R2TransformReadableType value)
Copy the current immutable object by setting a value for the
transform attribute. |
public R2TransformReadableType transform()
transform in interface R2DebugCubeInstanceTypepublic com.io7m.jtensors.parameterized.PVectorI4F<R2SpaceRGBAType> color()
color in interface R2DebugCubeInstanceTypepublic final R2DebugCubeInstance withTransform(R2TransformReadableType value)
transform attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for transformthis objectpublic final R2DebugCubeInstance withColor(com.io7m.jtensors.parameterized.PVectorI4F<R2SpaceRGBAType> value)
color attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for colorthis objectpublic boolean equals(Object another)
R2DebugCubeInstance that have equal attribute values.public int hashCode()
transform, color.public String toString()
R2DebugCubeInstance with attribute values.public static R2DebugCubeInstance of(R2TransformReadableType transform, com.io7m.jtensors.parameterized.PVectorI4F<R2SpaceRGBAType> color)
R2DebugCubeInstance instance.transform - The value for the transform attributecolor - The value for the color attributepublic static R2DebugCubeInstance copyOf(R2DebugCubeInstanceType instance)
R2DebugCubeInstanceType 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 R2DebugCubeInstance.Builder builder()
R2DebugCubeInstance.Copyright © 2017 <code@io7m.com> http://io7m.com