@Generated(value={"Immutables.generator","R2DebugInstancesType"}) public final class R2DebugInstances extends Object implements R2DebugInstancesType
Modifier and Type | Class and Description |
---|---|
static class |
R2DebugInstances.Builder
Builds instances of type
R2DebugInstances . |
Modifier and Type | Method and Description |
---|---|
static R2DebugInstances.Builder |
builder()
Creates a builder for
R2DebugInstances . |
static R2DebugInstances |
copyOf(R2DebugInstancesType instance)
Creates an immutable copy of a
R2DebugInstancesType value. |
List<R2DebugCubeInstance> |
cubes() |
boolean |
equals(Object another)
This instance is equal to all instances of
R2DebugInstances that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
lineSegments , cubes , instanceSingles . |
List<R2DebugInstanceSingle> |
instanceSingles() |
List<R2DebugLineSegment> |
lineSegments() |
static R2DebugInstances |
of(Iterable<? extends R2DebugLineSegment> lineSegments,
Iterable<? extends R2DebugCubeInstance> cubes,
Iterable<? extends R2DebugInstanceSingle> instanceSingles)
Construct a new immutable
R2DebugInstances instance. |
static R2DebugInstances |
of(List<R2DebugLineSegment> lineSegments,
List<R2DebugCubeInstance> cubes,
List<R2DebugInstanceSingle> instanceSingles)
Construct a new immutable
R2DebugInstances instance. |
String |
toString()
Prints the immutable value
R2DebugInstances with attribute values. |
R2DebugInstances |
withCubes(Iterable<? extends R2DebugCubeInstance> elements)
Copy the current immutable object with elements that replace the content of
cubes . |
R2DebugInstances |
withCubes(R2DebugCubeInstance... elements)
Copy the current immutable object with elements that replace the content of
cubes . |
R2DebugInstances |
withInstanceSingles(Iterable<? extends R2DebugInstanceSingle> elements)
Copy the current immutable object with elements that replace the content of
instanceSingles . |
R2DebugInstances |
withInstanceSingles(R2DebugInstanceSingle... elements)
Copy the current immutable object with elements that replace the content of
instanceSingles . |
R2DebugInstances |
withLineSegments(Iterable<? extends R2DebugLineSegment> elements)
Copy the current immutable object with elements that replace the content of
lineSegments . |
R2DebugInstances |
withLineSegments(R2DebugLineSegment... elements)
Copy the current immutable object with elements that replace the content of
lineSegments . |
public List<R2DebugLineSegment> lineSegments()
lineSegments
in interface R2DebugInstancesType
public List<R2DebugCubeInstance> cubes()
cubes
in interface R2DebugInstancesType
public List<R2DebugInstanceSingle> instanceSingles()
instanceSingles
in interface R2DebugInstancesType
public final R2DebugInstances withLineSegments(R2DebugLineSegment... elements)
lineSegments
.elements
- The elements to setthis
objectpublic final R2DebugInstances withLineSegments(Iterable<? extends R2DebugLineSegment> elements)
lineSegments
.
A shallow reference equality check is used to prevent copying of the same value by returning this
.elements
- An iterable of lineSegments elements to setthis
objectpublic final R2DebugInstances withCubes(R2DebugCubeInstance... elements)
cubes
.elements
- The elements to setthis
objectpublic final R2DebugInstances withCubes(Iterable<? extends R2DebugCubeInstance> elements)
cubes
.
A shallow reference equality check is used to prevent copying of the same value by returning this
.elements
- An iterable of cubes elements to setthis
objectpublic final R2DebugInstances withInstanceSingles(R2DebugInstanceSingle... elements)
instanceSingles
.elements
- The elements to setthis
objectpublic final R2DebugInstances withInstanceSingles(Iterable<? extends R2DebugInstanceSingle> elements)
instanceSingles
.
A shallow reference equality check is used to prevent copying of the same value by returning this
.elements
- An iterable of instanceSingles elements to setthis
objectpublic boolean equals(Object another)
R2DebugInstances
that have equal attribute values.public int hashCode()
lineSegments
, cubes
, instanceSingles
.public String toString()
R2DebugInstances
with attribute values.public static R2DebugInstances of(List<R2DebugLineSegment> lineSegments, List<R2DebugCubeInstance> cubes, List<R2DebugInstanceSingle> instanceSingles)
R2DebugInstances
instance.lineSegments
- The value for the lineSegments
attributecubes
- The value for the cubes
attributeinstanceSingles
- The value for the instanceSingles
attributepublic static R2DebugInstances of(Iterable<? extends R2DebugLineSegment> lineSegments, Iterable<? extends R2DebugCubeInstance> cubes, Iterable<? extends R2DebugInstanceSingle> instanceSingles)
R2DebugInstances
instance.lineSegments
- The value for the lineSegments
attributecubes
- The value for the cubes
attributeinstanceSingles
- The value for the instanceSingles
attributepublic static R2DebugInstances copyOf(R2DebugInstancesType instance)
R2DebugInstancesType
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 R2DebugInstances.Builder builder()
R2DebugInstances
.Copyright © 2017 <code@io7m.com> http://io7m.com