@Generated(value={"Immutables.generator","OctTreeConfigurationDType"}) public final class OctTreeConfigurationD extends Object implements OctTreeConfigurationDType
| Modifier and Type | Class and Description |
|---|---|
static class |
OctTreeConfigurationD.Builder
Builds instances of type
OctTreeConfigurationD. |
| Modifier and Type | Method and Description |
|---|---|
static OctTreeConfigurationD.Builder |
builder()
Creates a builder for
OctTreeConfigurationD. |
static OctTreeConfigurationD |
copyOf(OctTreeConfigurationDType instance)
Creates an immutable copy of a
OctTreeConfigurationDType value. |
boolean |
equals(Object another)
This instance is equal to all instances of
OctTreeConfigurationD that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
volume, minimumOctantWidth, minimumOctantHeight, minimumOctantDepth, trimOnRemove. |
double |
minimumOctantDepth() |
double |
minimumOctantHeight() |
double |
minimumOctantWidth() |
static OctTreeConfigurationD |
of(com.io7m.jregions.core.unparameterized.volumes.VolumeD volume,
double minimumOctantWidth,
double minimumOctantHeight,
double minimumOctantDepth,
boolean trimOnRemove)
Construct a new immutable
OctTreeConfigurationD instance. |
String |
toString()
Prints the immutable value
OctTreeConfigurationD with attribute values. |
boolean |
trimOnRemove() |
com.io7m.jregions.core.unparameterized.volumes.VolumeD |
volume() |
OctTreeConfigurationD |
withMinimumOctantDepth(double value)
Copy the current immutable object by setting a value for the
minimumOctantDepth attribute. |
OctTreeConfigurationD |
withMinimumOctantHeight(double value)
Copy the current immutable object by setting a value for the
minimumOctantHeight attribute. |
OctTreeConfigurationD |
withMinimumOctantWidth(double value)
Copy the current immutable object by setting a value for the
minimumOctantWidth attribute. |
OctTreeConfigurationD |
withTrimOnRemove(boolean value)
Copy the current immutable object by setting a value for the
trimOnRemove attribute. |
OctTreeConfigurationD |
withVolume(com.io7m.jregions.core.unparameterized.volumes.VolumeD value)
Copy the current immutable object by setting a value for the
volume attribute. |
public com.io7m.jregions.core.unparameterized.volumes.VolumeD volume()
volume in interface OctTreeConfigurationDTypepublic double minimumOctantWidth()
minimumOctantWidth in interface OctTreeConfigurationDType>= 0.0001)public double minimumOctantHeight()
minimumOctantHeight in interface OctTreeConfigurationDType>= 0.0001)public double minimumOctantDepth()
minimumOctantDepth in interface OctTreeConfigurationDType>= 0.0001)public boolean trimOnRemove()
trimOnRemove in interface OctTreeConfigurationDTypetrue iff the implementation should attempt to trim empty
leaf nodes when an item is removedpublic final OctTreeConfigurationD withVolume(com.io7m.jregions.core.unparameterized.volumes.VolumeD value)
volume attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for volumethis objectpublic final OctTreeConfigurationD withMinimumOctantWidth(double value)
minimumOctantWidth attribute.
A value strict bits equality used to prevent copying of the same value by returning this.value - A new value for minimumOctantWidththis objectpublic final OctTreeConfigurationD withMinimumOctantHeight(double value)
minimumOctantHeight attribute.
A value strict bits equality used to prevent copying of the same value by returning this.value - A new value for minimumOctantHeightthis objectpublic final OctTreeConfigurationD withMinimumOctantDepth(double value)
minimumOctantDepth attribute.
A value strict bits equality used to prevent copying of the same value by returning this.value - A new value for minimumOctantDepththis objectpublic final OctTreeConfigurationD withTrimOnRemove(boolean value)
trimOnRemove attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for trimOnRemovethis objectpublic boolean equals(Object another)
OctTreeConfigurationD that have equal attribute values.public int hashCode()
volume, minimumOctantWidth, minimumOctantHeight, minimumOctantDepth, trimOnRemove.public String toString()
OctTreeConfigurationD with attribute values.public static OctTreeConfigurationD of(com.io7m.jregions.core.unparameterized.volumes.VolumeD volume, double minimumOctantWidth, double minimumOctantHeight, double minimumOctantDepth, boolean trimOnRemove)
OctTreeConfigurationD instance.volume - The value for the volume attributeminimumOctantWidth - The value for the minimumOctantWidth attributeminimumOctantHeight - The value for the minimumOctantHeight attributeminimumOctantDepth - The value for the minimumOctantDepth attributetrimOnRemove - The value for the trimOnRemove attributepublic static OctTreeConfigurationD copyOf(OctTreeConfigurationDType instance)
OctTreeConfigurationDType 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 OctTreeConfigurationD.Builder builder()
OctTreeConfigurationD.Copyright © 2017 <code@io7m.com> http://io7m.com