M
- generic parameter M@Generated(value={"Modifiables.generator","R2ShaderParametersMaterialType<M>"}) public final class R2ShaderParametersMaterialMutable<M> extends Object implements R2ShaderParametersMaterialType<M>
R2ShaderParametersMaterialType
type.
Use the create()
static factory methods to create new instances.
Use the toImmutable()
method to convert to canonical immutable instances.
R2ShaderParametersMaterialMutable is not thread-safe
R2ShaderParametersMaterial
Modifier and Type | Method and Description |
---|---|
R2ShaderParametersMaterialMutable<M> |
clear()
Clears the object by setting all attributes to their initial values.
|
static <M> R2ShaderParametersMaterialMutable<M> |
create()
Construct a modifiable instance of
R2ShaderParametersMaterialType . |
static <M> R2ShaderParametersMaterialMutable<M> |
create(com.io7m.jcanephora.texture.unit_allocator.JCGLTextureUnitContextMutableType textureUnitContext,
M values)
Construct a modifiable instance of
R2ShaderParametersMaterialType . |
boolean |
equals(Object another)
This instance is equal to all instances of
R2ShaderParametersMaterialMutable that have equal attribute values. |
R2ShaderParametersMaterialMutable<M> |
from(R2ShaderParametersMaterialType<M> instance)
Fill this modifiable instance with attribute values from the provided
R2ShaderParametersMaterialType instance. |
int |
hashCode()
Computes a hash code from attributes:
textureUnitContext , values . |
boolean |
isInitialized()
Returns
true if all required attributes are set, indicating that the object is initialized. |
R2ShaderParametersMaterialMutable<M> |
setTextureUnitContext(com.io7m.jcanephora.texture.unit_allocator.JCGLTextureUnitContextMutableType textureUnitContext)
Assigns a value to the
textureUnitContext attribute. |
R2ShaderParametersMaterialMutable<M> |
setValues(M values)
Assigns a value to the
values attribute. |
com.io7m.jcanephora.texture.unit_allocator.JCGLTextureUnitContextMutableType |
textureUnitContext() |
boolean |
textureUnitContextIsSet()
Returns
true if the required attribute textureUnitContext is set. |
R2ShaderParametersMaterial<M> |
toImmutable()
Converts to
R2ShaderParametersMaterial . |
String |
toString()
Generates a string representation of this
R2ShaderParametersMaterialType . |
R2ShaderParametersMaterialMutable<M> |
unsetTextureUnitContext()
Reset an attribute to its initial value.
|
R2ShaderParametersMaterialMutable<M> |
unsetValues()
Reset an attribute to its initial value.
|
M |
values() |
boolean |
valuesIsSet()
Returns
true if the required attribute values is set. |
public static <M> R2ShaderParametersMaterialMutable<M> create(com.io7m.jcanephora.texture.unit_allocator.JCGLTextureUnitContextMutableType textureUnitContext, M values)
R2ShaderParametersMaterialType
.M
- generic parameter MtextureUnitContext
- The value for the textureUnitContext
attributevalues
- The value for the values
attributepublic static <M> R2ShaderParametersMaterialMutable<M> create()
R2ShaderParametersMaterialType
.M
- generic parameter Mpublic final com.io7m.jcanephora.texture.unit_allocator.JCGLTextureUnitContextMutableType textureUnitContext()
textureUnitContext
in interface R2ShaderParametersMaterialType<M>
public final M values()
values
in interface R2ShaderParametersMaterialType<M>
public R2ShaderParametersMaterialMutable<M> clear()
this
for use in a chained invocationpublic R2ShaderParametersMaterialMutable<M> from(R2ShaderParametersMaterialType<M> instance)
R2ShaderParametersMaterialType
instance.
Regular attribute values will be overridden, i.e. replaced with ones of an instance.
Any of the instance's absent optional values will not be copied (will not override current values).instance
- The instance from which to copy valuesthis
for use in a chained invocationpublic R2ShaderParametersMaterialMutable<M> setTextureUnitContext(com.io7m.jcanephora.texture.unit_allocator.JCGLTextureUnitContextMutableType textureUnitContext)
textureUnitContext
attribute.textureUnitContext
- The value for textureUnitContextthis
for use in a chained invocationpublic R2ShaderParametersMaterialMutable<M> setValues(M values)
values
attribute.values
- The value for valuesthis
for use in a chained invocationpublic final boolean textureUnitContextIsSet()
true
if the required attribute textureUnitContext
is set.true
if setpublic final boolean valuesIsSet()
true
if the required attribute values
is set.true
if setpublic final R2ShaderParametersMaterialMutable<M> unsetTextureUnitContext()
this
for use in a chained invocationpublic final R2ShaderParametersMaterialMutable<M> unsetValues()
this
for use in a chained invocationpublic final boolean isInitialized()
true
if all required attributes are set, indicating that the object is initialized.true
if setpublic final R2ShaderParametersMaterial<M> toImmutable()
R2ShaderParametersMaterial
.public boolean equals(Object another)
R2ShaderParametersMaterialMutable
that have equal attribute values.
An uninitialized instance is equal only to itself.public int hashCode()
textureUnitContext
, values
.Copyright © 2017 <code@io7m.com> http://io7m.com