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