@Generated(value={"Immutables.generator","R2ShaderFilterTextureShowParametersType"}) public final class R2ShaderFilterTextureShowParameters extends Object implements R2ShaderFilterTextureShowParametersType
| Modifier and Type | Class and Description |
|---|---|
static class |
R2ShaderFilterTextureShowParameters.Builder
Builds instances of type
R2ShaderFilterTextureShowParameters. |
| Modifier and Type | Method and Description |
|---|---|
static R2ShaderFilterTextureShowParameters.Builder |
builder()
Creates a builder for
R2ShaderFilterTextureShowParameters. |
static R2ShaderFilterTextureShowParameters |
copyOf(R2ShaderFilterTextureShowParametersType instance)
Creates an immutable copy of a
R2ShaderFilterTextureShowParametersType value. |
boolean |
equals(Object another)
This instance is equal to all instances of
R2ShaderFilterTextureShowParameters that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
texture, intensity. |
float |
intensity() |
static R2ShaderFilterTextureShowParameters |
of(R2Texture2DUsableType texture,
float intensity)
Construct a new immutable
R2ShaderFilterTextureShowParameters instance. |
R2Texture2DUsableType |
texture() |
String |
toString()
Prints the immutable value
R2ShaderFilterTextureShowParameters with attribute values. |
R2ShaderFilterTextureShowParameters |
withIntensity(float value)
Copy the current immutable object by setting a value for the
intensity attribute. |
R2ShaderFilterTextureShowParameters |
withTexture(R2Texture2DUsableType value)
Copy the current immutable object by setting a value for the
texture attribute. |
public R2Texture2DUsableType texture()
texture in interface R2ShaderFilterTextureShowParametersTypepublic float intensity()
intensity in interface R2ShaderFilterTextureShowParametersTypepublic final R2ShaderFilterTextureShowParameters withTexture(R2Texture2DUsableType value)
texture attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for texturethis objectpublic final R2ShaderFilterTextureShowParameters withIntensity(float value)
intensity attribute.
A value strict bits equality used to prevent copying of the same value by returning this.value - A new value for intensitythis objectpublic boolean equals(Object another)
R2ShaderFilterTextureShowParameters that have equal attribute values.public int hashCode()
texture, intensity.public String toString()
R2ShaderFilterTextureShowParameters with attribute values.public static R2ShaderFilterTextureShowParameters of(R2Texture2DUsableType texture, float intensity)
R2ShaderFilterTextureShowParameters instance.texture - The value for the texture attributeintensity - The value for the intensity attributepublic static R2ShaderFilterTextureShowParameters copyOf(R2ShaderFilterTextureShowParametersType instance)
R2ShaderFilterTextureShowParametersType value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static R2ShaderFilterTextureShowParameters.Builder builder()
R2ShaderFilterTextureShowParameters.Copyright © 2016 <code@io7m.com> http://io7m.com