M
- The type of shader parameters@Generated(value={"Immutables.generator","R2TranslucentSingleType<M>"}) public final class R2TranslucentSingle<M> extends Object implements R2TranslucentSingleType<M>
Modifier and Type | Class and Description |
---|---|
static class |
R2TranslucentSingle.Builder<M>
Builds instances of type
R2TranslucentSingle . |
Modifier and Type | Method and Description |
---|---|
Optional<com.io7m.jcanephora.renderstate.JCGLBlendState> |
blending() |
static <M> R2TranslucentSingle.Builder<M> |
builder()
Creates a builder for
R2TranslucentSingle . |
static <M> R2TranslucentSingle<M> |
copyOf(R2TranslucentSingleType<M> instance)
Creates an immutable copy of a
R2TranslucentSingleType value. |
com.io7m.jcanephora.renderstate.JCGLCullingState |
culling() |
boolean |
equals(Object another)
This instance is equal to all instances of
R2TranslucentSingle that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
instance , shader , shaderParameters , blending , culling . |
R2InstanceSingleType |
instance() |
static <M> R2TranslucentSingle<M> |
of(R2InstanceSingleType instance,
R2ShaderTranslucentInstanceSingleType<M> shader,
M shaderParameters,
Optional<com.io7m.jcanephora.renderstate.JCGLBlendState> blending,
com.io7m.jcanephora.renderstate.JCGLCullingState culling)
Construct a new immutable
R2TranslucentSingle instance. |
R2ShaderTranslucentInstanceSingleType<M> |
shader() |
M |
shaderParameters() |
String |
toString()
Prints the immutable value
R2TranslucentSingle with attribute values. |
R2TranslucentSingle<M> |
withBlending(com.io7m.jcanephora.renderstate.JCGLBlendState value)
Copy the current immutable object by setting a present value for the optional
blending attribute. |
R2TranslucentSingle<M> |
withBlending(Optional<? extends com.io7m.jcanephora.renderstate.JCGLBlendState> optional)
Copy the current immutable object by setting an optional value for the
blending attribute. |
R2TranslucentSingle<M> |
withCulling(com.io7m.jcanephora.renderstate.JCGLCullingState value)
Copy the current immutable object by setting a value for the
culling attribute. |
R2TranslucentSingle<M> |
withInstance(R2InstanceSingleType value)
Copy the current immutable object by setting a value for the
instance attribute. |
R2TranslucentSingle<M> |
withShader(R2ShaderTranslucentInstanceSingleType<M> value)
Copy the current immutable object by setting a value for the
shader attribute. |
R2TranslucentSingle<M> |
withShaderParameters(M value)
Copy the current immutable object by setting a value for the
shaderParameters attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
matchTranslucent
shaderParametersType
public R2InstanceSingleType instance()
instance
in interface R2TranslucentSingleType<M>
public R2ShaderTranslucentInstanceSingleType<M> shader()
shader
in interface R2TranslucentSingleType<M>
public M shaderParameters()
shaderParameters
in interface R2TranslucentSingleType<M>
shaderParameters
in interface R2TranslucentType<M>
shaderParameters
attributepublic Optional<com.io7m.jcanephora.renderstate.JCGLBlendState> blending()
blending
in interface R2TranslucentSingleType<M>
blending
in interface R2TranslucentType<M>
blending
attributepublic com.io7m.jcanephora.renderstate.JCGLCullingState culling()
culling
in interface R2TranslucentSingleType<M>
culling
in interface R2TranslucentType<M>
culling
attributepublic final R2TranslucentSingle<M> withInstance(R2InstanceSingleType value)
instance
attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this
.value
- A new value for instancethis
objectpublic final R2TranslucentSingle<M> withShader(R2ShaderTranslucentInstanceSingleType<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 R2TranslucentSingle<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 final R2TranslucentSingle<M> withBlending(com.io7m.jcanephora.renderstate.JCGLBlendState value)
blending
attribute.value
- The value for blendingthis
objectpublic final R2TranslucentSingle<M> withBlending(Optional<? extends com.io7m.jcanephora.renderstate.JCGLBlendState> optional)
blending
attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this
.optional
- A value for blendingthis
objectpublic final R2TranslucentSingle<M> withCulling(com.io7m.jcanephora.renderstate.JCGLCullingState value)
culling
attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this
.value
- A new value for cullingthis
objectpublic boolean equals(Object another)
R2TranslucentSingle
that have equal attribute values.public int hashCode()
instance
, shader
, shaderParameters
, blending
, culling
.public String toString()
R2TranslucentSingle
with attribute values.public static <M> R2TranslucentSingle<M> of(R2InstanceSingleType instance, R2ShaderTranslucentInstanceSingleType<M> shader, M shaderParameters, Optional<com.io7m.jcanephora.renderstate.JCGLBlendState> blending, com.io7m.jcanephora.renderstate.JCGLCullingState culling)
R2TranslucentSingle
instance.instance
- The value for the instance
attributeshader
- The value for the shader
attributeshaderParameters
- The value for the shaderParameters
attributeblending
- The value for the blending
attributeculling
- The value for the culling
attributepublic static <M> R2TranslucentSingle<M> copyOf(R2TranslucentSingleType<M> instance)
R2TranslucentSingleType
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> R2TranslucentSingle.Builder<M> builder()
R2TranslucentSingle
.M
- generic parameter MCopyright © 2017 <code@io7m.com> http://io7m.com