@Generated(value={"Immutables.generator","R2BlurParametersType"}) public final class R2BlurParameters extends Object implements R2BlurParametersType
Modifier and Type | Class and Description |
---|---|
static class |
R2BlurParameters.Builder
Builds instances of type
R2BlurParameters . |
Modifier and Type | Method and Description |
---|---|
int |
blurPasses()
The number of blur passes that will be used.
|
double |
blurScale()
The amount by which the image will be scaled during the blur operation.
|
com.io7m.jcanephora.core.JCGLFramebufferBlitFilter |
blurScaleFilter() |
double |
blurSize() |
static R2BlurParameters.Builder |
builder()
Creates a builder for
R2BlurParameters . |
static R2BlurParameters |
copyOf(R2BlurParametersType instance)
Creates an immutable copy of a
R2BlurParametersType value. |
boolean |
equals(Object another)
This instance is equal to all instances of
R2BlurParameters that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
blurSize , blurScale , blurPasses , blurScaleFilter . |
static R2BlurParameters |
of(double blurSize,
double blurScale,
int blurPasses,
com.io7m.jcanephora.core.JCGLFramebufferBlitFilter blurScaleFilter)
Construct a new immutable
R2BlurParameters instance. |
String |
toString()
Prints the immutable value
R2BlurParameters with attribute values. |
R2BlurParameters |
withBlurPasses(int value)
Copy the current immutable object by setting a value for the
blurPasses attribute. |
R2BlurParameters |
withBlurScale(double value)
Copy the current immutable object by setting a value for the
blurScale attribute. |
R2BlurParameters |
withBlurScaleFilter(com.io7m.jcanephora.core.JCGLFramebufferBlitFilter value)
Copy the current immutable object by setting a value for the
blurScaleFilter attribute. |
R2BlurParameters |
withBlurSize(double value)
Copy the current immutable object by setting a value for the
blurSize attribute. |
public double blurSize()
blurSize
in interface R2BlurParametersType
public double blurScale()
blurScale
in interface R2BlurParametersType
public int blurPasses()
0
is
given here, the image will only be scaled and not actually blurred (and
will not actually even be scaled, if a value of 1.0
is given for
blurScale()
).blurPasses
in interface R2BlurParametersType
public com.io7m.jcanephora.core.JCGLFramebufferBlitFilter blurScaleFilter()
blurScaleFilter
in interface R2BlurParametersType
public final R2BlurParameters withBlurSize(double value)
blurSize
attribute.
A value strict bits equality used to prevent copying of the same value by returning this
.value
- A new value for blurSizethis
objectpublic final R2BlurParameters withBlurScale(double value)
blurScale
attribute.
A value strict bits equality used to prevent copying of the same value by returning this
.value
- A new value for blurScalethis
objectpublic final R2BlurParameters withBlurPasses(int value)
blurPasses
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for blurPassesthis
objectpublic final R2BlurParameters withBlurScaleFilter(com.io7m.jcanephora.core.JCGLFramebufferBlitFilter value)
blurScaleFilter
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for blurScaleFilterthis
objectpublic boolean equals(Object another)
R2BlurParameters
that have equal attribute values.public int hashCode()
blurSize
, blurScale
, blurPasses
, blurScaleFilter
.public String toString()
R2BlurParameters
with attribute values.public static R2BlurParameters of(double blurSize, double blurScale, int blurPasses, com.io7m.jcanephora.core.JCGLFramebufferBlitFilter blurScaleFilter)
R2BlurParameters
instance.blurSize
- The value for the blurSize
attributeblurScale
- The value for the blurScale
attributeblurPasses
- The value for the blurPasses
attributeblurScaleFilter
- The value for the blurScaleFilter
attributepublic static R2BlurParameters copyOf(R2BlurParametersType instance)
R2BlurParametersType
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 R2BlurParameters.Builder builder()
R2BlurParameters
.Copyright © 2017 <code@io7m.com> http://io7m.com