@Generated(value={"Immutables.generator","R2FilterCompositorItemType"}) public final class R2FilterCompositorItem extends Object implements R2FilterCompositorItemType
| Modifier and Type | Class and Description |
|---|---|
static class |
R2FilterCompositorItem.Builder
Builds instances of type
R2FilterCompositorItem. |
| Modifier and Type | Method and Description |
|---|---|
Optional<R2FilterCompositorBlendingType> |
blending() |
static R2FilterCompositorItem.Builder |
builder()
Creates a builder for
R2FilterCompositorItem. |
static R2FilterCompositorItem |
copyOf(R2FilterCompositorItemType instance)
Creates an immutable copy of a
R2FilterCompositorItemType value. |
boolean |
equals(Object another)
This instance is equal to all instances of
R2FilterCompositorItem that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
texture, outputViewport, intensity, blending. |
float |
intensity() |
static R2FilterCompositorItem |
of(R2Texture2DUsableType texture,
com.io7m.jareas.core.AreaInclusiveUnsignedLType outputViewport,
float intensity,
Optional<R2FilterCompositorBlendingType> blending)
Construct a new immutable
R2FilterCompositorItem instance. |
com.io7m.jareas.core.AreaInclusiveUnsignedLType |
outputViewport() |
R2Texture2DUsableType |
texture() |
String |
toString()
Prints the immutable value
R2FilterCompositorItem with attribute values. |
R2FilterCompositorItem |
withBlending(Optional<R2FilterCompositorBlendingType> optional)
Copy the current immutable object by setting an optional value for the
blending attribute. |
R2FilterCompositorItem |
withBlending(R2FilterCompositorBlendingType value)
Copy the current immutable object by setting a present value for the optional
blending attribute. |
R2FilterCompositorItem |
withIntensity(float value)
Copy the current immutable object by setting a value for the
intensity attribute. |
R2FilterCompositorItem |
withOutputViewport(com.io7m.jareas.core.AreaInclusiveUnsignedLType value)
Copy the current immutable object by setting a value for the
outputViewport attribute. |
R2FilterCompositorItem |
withTexture(R2Texture2DUsableType value)
Copy the current immutable object by setting a value for the
texture attribute. |
public R2Texture2DUsableType texture()
texture in interface R2FilterCompositorItemTypepublic com.io7m.jareas.core.AreaInclusiveUnsignedLType outputViewport()
outputViewport in interface R2FilterCompositorItemTypepublic float intensity()
intensity in interface R2FilterCompositorItemTypepublic Optional<R2FilterCompositorBlendingType> blending()
blending in interface R2FilterCompositorItemTypepublic final R2FilterCompositorItem 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 R2FilterCompositorItem withOutputViewport(com.io7m.jareas.core.AreaInclusiveUnsignedLType value)
outputViewport attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for outputViewportthis objectpublic final R2FilterCompositorItem 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 final R2FilterCompositorItem withBlending(R2FilterCompositorBlendingType value)
blending attribute.value - The value for blendingthis objectpublic final R2FilterCompositorItem withBlending(Optional<R2FilterCompositorBlendingType> 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 boolean equals(Object another)
R2FilterCompositorItem that have equal attribute values.public int hashCode()
texture, outputViewport, intensity, blending.public String toString()
R2FilterCompositorItem with attribute values.public static R2FilterCompositorItem of(R2Texture2DUsableType texture, com.io7m.jareas.core.AreaInclusiveUnsignedLType outputViewport, float intensity, Optional<R2FilterCompositorBlendingType> blending)
R2FilterCompositorItem instance.texture - The value for the texture attributeoutputViewport - The value for the outputViewport attributeintensity - The value for the intensity attributeblending - The value for the blending attributepublic static R2FilterCompositorItem copyOf(R2FilterCompositorItemType instance)
R2FilterCompositorItemType 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 R2FilterCompositorItem.Builder builder()
R2FilterCompositorItem.Copyright © 2017 <code@io7m.com> http://io7m.com