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