@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<R2FilterCompositorBlending> |
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 . |
double |
intensity() |
static R2FilterCompositorItem |
of(R2Texture2DUsableType texture,
com.io7m.jregions.core.unparameterized.areas.AreaL outputViewport,
double intensity,
Optional<R2FilterCompositorBlending> blending)
Construct a new immutable
R2FilterCompositorItem instance. |
com.io7m.jregions.core.unparameterized.areas.AreaL |
outputViewport() |
R2Texture2DUsableType |
texture() |
String |
toString()
Prints the immutable value
R2FilterCompositorItem with attribute values. |
R2FilterCompositorItem |
withBlending(Optional<? extends R2FilterCompositorBlending> optional)
Copy the current immutable object by setting an optional value for the
blending attribute. |
R2FilterCompositorItem |
withBlending(R2FilterCompositorBlending value)
Copy the current immutable object by setting a present value for the optional
blending attribute. |
R2FilterCompositorItem |
withIntensity(double value)
Copy the current immutable object by setting a value for the
intensity attribute. |
R2FilterCompositorItem |
withOutputViewport(com.io7m.jregions.core.unparameterized.areas.AreaL 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 R2FilterCompositorItemType
public com.io7m.jregions.core.unparameterized.areas.AreaL outputViewport()
outputViewport
in interface R2FilterCompositorItemType
public double intensity()
intensity
in interface R2FilterCompositorItemType
public Optional<R2FilterCompositorBlending> blending()
blending
in interface R2FilterCompositorItemType
public 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.jregions.core.unparameterized.areas.AreaL 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(double 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(R2FilterCompositorBlending value)
blending
attribute.value
- The value for blendingthis
objectpublic final R2FilterCompositorItem withBlending(Optional<? extends R2FilterCompositorBlending> 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.jregions.core.unparameterized.areas.AreaL outputViewport, double intensity, Optional<R2FilterCompositorBlending> 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