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