M
- The precise type of shader parameters@Generated(value={"Immutables.generator","R2ShaderParametersMaterialType<M>"}) public final class R2ShaderParametersMaterial<M> extends Object implements R2ShaderParametersMaterialType<M>
Modifier and Type | Class and Description |
---|---|
static class |
R2ShaderParametersMaterial.Builder<M>
Builds instances of type
R2ShaderParametersMaterial . |
Modifier and Type | Method and Description |
---|---|
static <M> R2ShaderParametersMaterial.Builder<M> |
builder()
Creates a builder for
R2ShaderParametersMaterial . |
static <M> R2ShaderParametersMaterial<M> |
copyOf(R2ShaderParametersMaterialType<M> instance)
Creates an immutable copy of a
R2ShaderParametersMaterialType value. |
boolean |
equals(Object another)
This instance is equal to all instances of
R2ShaderParametersMaterial that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
textureUnitContext , values . |
static <M> R2ShaderParametersMaterial<M> |
of(com.io7m.jcanephora.texture.unit_allocator.JCGLTextureUnitContextMutableType textureUnitContext,
M values)
Construct a new immutable
R2ShaderParametersMaterial instance. |
com.io7m.jcanephora.texture.unit_allocator.JCGLTextureUnitContextMutableType |
textureUnitContext() |
String |
toString()
Prints the immutable value
R2ShaderParametersMaterial with attribute values. |
M |
values() |
R2ShaderParametersMaterial<M> |
withTextureUnitContext(com.io7m.jcanephora.texture.unit_allocator.JCGLTextureUnitContextMutableType value)
Copy the current immutable object by setting a value for the
textureUnitContext attribute. |
R2ShaderParametersMaterial<M> |
withValues(M value)
Copy the current immutable object by setting a value for the
values attribute. |
public com.io7m.jcanephora.texture.unit_allocator.JCGLTextureUnitContextMutableType textureUnitContext()
textureUnitContext
in interface R2ShaderParametersMaterialType<M>
public M values()
values
in interface R2ShaderParametersMaterialType<M>
public final R2ShaderParametersMaterial<M> withTextureUnitContext(com.io7m.jcanephora.texture.unit_allocator.JCGLTextureUnitContextMutableType value)
textureUnitContext
attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this
.value
- A new value for textureUnitContextthis
objectpublic final R2ShaderParametersMaterial<M> withValues(M value)
values
attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this
.value
- A new value for valuesthis
objectpublic boolean equals(Object another)
R2ShaderParametersMaterial
that have equal attribute values.public int hashCode()
textureUnitContext
, values
.public String toString()
R2ShaderParametersMaterial
with attribute values.public static <M> R2ShaderParametersMaterial<M> of(com.io7m.jcanephora.texture.unit_allocator.JCGLTextureUnitContextMutableType textureUnitContext, M values)
R2ShaderParametersMaterial
instance.textureUnitContext
- The value for the textureUnitContext
attributevalues
- The value for the values
attributepublic static <M> R2ShaderParametersMaterial<M> copyOf(R2ShaderParametersMaterialType<M> instance)
R2ShaderParametersMaterialType
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> R2ShaderParametersMaterial.Builder<M> builder()
R2ShaderParametersMaterial
.M
- generic parameter MCopyright © 2017 <code@io7m.com> http://io7m.com