@Generated(value={"Immutables.generator","R2ShadowDepthVarianceType"}) public final class R2ShadowDepthVariance extends Object implements R2ShadowDepthVarianceType
Modifier and Type | Class and Description |
---|---|
static class |
R2ShadowDepthVariance.Builder
Builds instances of type
R2ShadowDepthVariance . |
Modifier and Type | Method and Description |
---|---|
static R2ShadowDepthVariance.Builder |
builder()
Creates a builder for
R2ShadowDepthVariance . |
static R2ShadowDepthVariance |
copyOf(R2ShadowDepthVarianceType instance)
Creates an immutable copy of a
R2ShadowDepthVarianceType value. |
boolean |
equals(Object another)
This instance is equal to all instances of
R2ShadowDepthVariance that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
shadowID , mapDescription . |
R2DepthVarianceBufferDescription |
mapDescription() |
static R2ShadowDepthVariance |
of(long shadowID,
R2DepthVarianceBufferDescription mapDescription)
Construct a new immutable
R2ShadowDepthVariance instance. |
long |
shadowID() |
String |
toString()
Prints the immutable value
R2ShadowDepthVariance with attribute values. |
R2ShadowDepthVariance |
withMapDescription(R2DepthVarianceBufferDescription value)
Copy the current immutable object by setting a value for the
mapDescription attribute. |
R2ShadowDepthVariance |
withShadowID(long value)
Copy the current immutable object by setting a value for the
shadowID attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
lightBleedReduction, matchShadow, minimumFactor, minimumVariance
public long shadowID()
shadowID
in interface R2ShadowDepthVarianceType
shadowID
in interface R2ShadowType
shadowID
attributepublic R2DepthVarianceBufferDescription mapDescription()
mapDescription
in interface R2ShadowDepthVarianceType
public final R2ShadowDepthVariance withShadowID(long value)
shadowID
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for shadowIDthis
objectpublic final R2ShadowDepthVariance withMapDescription(R2DepthVarianceBufferDescription value)
mapDescription
attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this
.value
- A new value for mapDescriptionthis
objectpublic boolean equals(Object another)
R2ShadowDepthVariance
that have equal attribute values.public int hashCode()
shadowID
, mapDescription
.public String toString()
R2ShadowDepthVariance
with attribute values.public static R2ShadowDepthVariance of(long shadowID, R2DepthVarianceBufferDescription mapDescription)
R2ShadowDepthVariance
instance.shadowID
- The value for the shadowID
attributemapDescription
- The value for the mapDescription
attributepublic static R2ShadowDepthVariance copyOf(R2ShadowDepthVarianceType instance)
R2ShadowDepthVarianceType
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 R2ShadowDepthVariance.Builder builder()
R2ShadowDepthVariance
.Copyright © 2017 <code@io7m.com> http://io7m.com