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