M
- The type of shader parameters@Generated(value={"Immutables.generator","R2MaterialDepthBatchedType<M>"}) public final class R2MaterialDepthBatched<M> extends Object implements R2MaterialDepthBatchedType<M>
Modifier and Type | Class and Description |
---|---|
static class |
R2MaterialDepthBatched.Builder<M>
Builds instances of type
R2MaterialDepthBatched . |
Modifier and Type | Method and Description |
---|---|
static <M> R2MaterialDepthBatched.Builder<M> |
builder()
Creates a builder for
R2MaterialDepthBatched . |
static <M> R2MaterialDepthBatched<M> |
copyOf(R2MaterialDepthBatchedType<M> instance)
Creates an immutable copy of a
R2MaterialDepthBatchedType value. |
boolean |
equals(Object another)
This instance is equal to all instances of
R2MaterialDepthBatched that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
materialID . |
long |
materialID() |
static <M> R2MaterialDepthBatched<M> |
of(long materialID,
R2ShaderDepthBatchedUsableType<M> shader,
M shaderParameters)
Construct a new immutable
R2MaterialDepthBatched instance. |
R2ShaderDepthBatchedUsableType<M> |
shader() |
M |
shaderParameters() |
String |
toString()
Prints the immutable value
R2MaterialDepthBatched with attribute values. |
R2MaterialDepthBatched<M> |
withMaterialID(long value)
Copy the current immutable object by setting a value for the
materialID attribute. |
R2MaterialDepthBatched<M> |
withShader(R2ShaderDepthBatchedUsableType<M> value)
Copy the current immutable object by setting a value for the
shader attribute. |
R2MaterialDepthBatched<M> |
withShaderParameters(M value)
Copy the current immutable object by setting a value for the
shaderParameters attribute. |
public long materialID()
materialID
in interface R2MaterialDepthBatchedType<M>
materialID
in interface R2MaterialType<M>
materialID
attributepublic R2ShaderDepthBatchedUsableType<M> shader()
shader
in interface R2MaterialDepthBatchedType<M>
shader
in interface R2MaterialType<M>
public M shaderParameters()
shaderParameters
in interface R2MaterialDepthBatchedType<M>
shaderParameters
in interface R2MaterialType<M>
shaderParameters
attributepublic final R2MaterialDepthBatched<M> withMaterialID(long value)
materialID
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for materialIDthis
objectpublic final R2MaterialDepthBatched<M> withShader(R2ShaderDepthBatchedUsableType<M> value)
shader
attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this
.value
- A new value for shaderthis
objectpublic final R2MaterialDepthBatched<M> withShaderParameters(M value)
shaderParameters
attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this
.value
- A new value for shaderParametersthis
objectpublic boolean equals(Object another)
R2MaterialDepthBatched
that have equal attribute values.public int hashCode()
materialID
.public String toString()
R2MaterialDepthBatched
with attribute values.public static <M> R2MaterialDepthBatched<M> of(long materialID, R2ShaderDepthBatchedUsableType<M> shader, M shaderParameters)
R2MaterialDepthBatched
instance.materialID
- The value for the materialID
attributeshader
- The value for the shader
attributeshaderParameters
- The value for the shaderParameters
attributepublic static <M> R2MaterialDepthBatched<M> copyOf(R2MaterialDepthBatchedType<M> instance)
R2MaterialDepthBatchedType
value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.M
- generic parameter Minstance
- The instance to copypublic static <M> R2MaterialDepthBatched.Builder<M> builder()
R2MaterialDepthBatched
.M
- generic parameter MCopyright © 2017 <code@io7m.com> http://io7m.com