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