M - The type of shader parameters@Generated(value={"Immutables.generator","R2MaterialOpaqueBatchedType<M>"}) public final class R2MaterialOpaqueBatched<M> extends Object implements R2MaterialOpaqueBatchedType<M>
| Modifier and Type | Class and Description |
|---|---|
static class |
R2MaterialOpaqueBatched.Builder<M>
Builds instances of type
R2MaterialOpaqueBatched. |
| Modifier and Type | Method and Description |
|---|---|
static <M> R2MaterialOpaqueBatched.Builder<M> |
builder()
Creates a builder for
R2MaterialOpaqueBatched. |
static <M> R2MaterialOpaqueBatched<M> |
copyOf(R2MaterialOpaqueBatchedType<M> instance)
Creates an immutable copy of a
R2MaterialOpaqueBatchedType value. |
boolean |
equals(Object another)
This instance is equal to all instances of
R2MaterialOpaqueBatched that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
materialID, shader. |
long |
materialID() |
static <M> R2MaterialOpaqueBatched<M> |
of(long materialID,
R2ShaderInstanceBatchedUsableType<M> shader,
M shaderParameters)
Construct a new immutable
R2MaterialOpaqueBatched instance. |
R2ShaderInstanceBatchedUsableType<M> |
shader() |
M |
shaderParameters() |
String |
toString()
Prints the immutable value
R2MaterialOpaqueBatched with attribute values. |
R2MaterialOpaqueBatched<M> |
withMaterialID(long value)
Copy the current immutable object by setting a value for the
materialID attribute. |
R2MaterialOpaqueBatched<M> |
withShader(R2ShaderInstanceBatchedUsableType<M> value)
Copy the current immutable object by setting a value for the
shader attribute. |
R2MaterialOpaqueBatched<M> |
withShaderParameters(M value)
Copy the current immutable object by setting a value for the
shaderParameters attribute. |
public long materialID()
materialID in interface R2MaterialOpaqueBatchedType<M>materialID in interface R2MaterialType<M>materialID attributepublic R2ShaderInstanceBatchedUsableType<M> shader()
shader in interface R2MaterialOpaqueBatchedType<M>shader in interface R2MaterialType<M>public M shaderParameters()
shaderParameters in interface R2MaterialOpaqueBatchedType<M>shaderParameters in interface R2MaterialType<M>shaderParameters attributepublic final R2MaterialOpaqueBatched<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 R2MaterialOpaqueBatched<M> withShader(R2ShaderInstanceBatchedUsableType<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 R2MaterialOpaqueBatched<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)
R2MaterialOpaqueBatched that have equal attribute values.public int hashCode()
materialID, shader.public String toString()
R2MaterialOpaqueBatched with attribute values.public static <M> R2MaterialOpaqueBatched<M> of(long materialID, R2ShaderInstanceBatchedUsableType<M> shader, M shaderParameters)
R2MaterialOpaqueBatched instance.materialID - The value for the materialID attributeshader - The value for the shader attributeshaderParameters - The value for the shaderParameters attributepublic static <M> R2MaterialOpaqueBatched<M> copyOf(R2MaterialOpaqueBatchedType<M> instance)
R2MaterialOpaqueBatchedType 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> R2MaterialOpaqueBatched.Builder<M> builder()
R2MaterialOpaqueBatched.M - generic parameter MCopyright © 2016 <code@io7m.com> http://io7m.com