@Generated(value={"Immutables.generator","QuadTreeConfigurationLType"}) public final class QuadTreeConfigurationL extends Object implements QuadTreeConfigurationLType
| Modifier and Type | Class and Description |
|---|---|
static class |
QuadTreeConfigurationL.Builder
Builds instances of type
QuadTreeConfigurationL. |
| Modifier and Type | Method and Description |
|---|---|
com.io7m.jregions.core.unparameterized.areas.AreaL |
area() |
static QuadTreeConfigurationL.Builder |
builder()
Creates a builder for
QuadTreeConfigurationL. |
static QuadTreeConfigurationL |
copyOf(QuadTreeConfigurationLType instance)
Creates an immutable copy of a
QuadTreeConfigurationLType value. |
boolean |
equals(Object another)
This instance is equal to all instances of
QuadTreeConfigurationL that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
area, minimumQuadrantWidth, minimumQuadrantHeight, trimOnRemove. |
long |
minimumQuadrantHeight() |
long |
minimumQuadrantWidth() |
static QuadTreeConfigurationL |
of(com.io7m.jregions.core.unparameterized.areas.AreaL area,
long minimumQuadrantWidth,
long minimumQuadrantHeight,
boolean trimOnRemove)
Construct a new immutable
QuadTreeConfigurationL instance. |
String |
toString()
Prints the immutable value
QuadTreeConfigurationL with attribute values. |
boolean |
trimOnRemove() |
QuadTreeConfigurationL |
withArea(com.io7m.jregions.core.unparameterized.areas.AreaL value)
Copy the current immutable object by setting a value for the
area attribute. |
QuadTreeConfigurationL |
withMinimumQuadrantHeight(long value)
Copy the current immutable object by setting a value for the
minimumQuadrantHeight attribute. |
QuadTreeConfigurationL |
withMinimumQuadrantWidth(long value)
Copy the current immutable object by setting a value for the
minimumQuadrantWidth attribute. |
QuadTreeConfigurationL |
withTrimOnRemove(boolean value)
Copy the current immutable object by setting a value for the
trimOnRemove attribute. |
public com.io7m.jregions.core.unparameterized.areas.AreaL area()
area in interface QuadTreeConfigurationLTypepublic long minimumQuadrantWidth()
minimumQuadrantWidth in interface QuadTreeConfigurationLType>= 2)public long minimumQuadrantHeight()
minimumQuadrantHeight in interface QuadTreeConfigurationLType>= 2)public boolean trimOnRemove()
trimOnRemove in interface QuadTreeConfigurationLTypetrue iff the implementation should attempt to trim empty
leaf nodes when an item is removedpublic final QuadTreeConfigurationL withArea(com.io7m.jregions.core.unparameterized.areas.AreaL value)
area attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for areathis objectpublic final QuadTreeConfigurationL withMinimumQuadrantWidth(long value)
minimumQuadrantWidth attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for minimumQuadrantWidththis objectpublic final QuadTreeConfigurationL withMinimumQuadrantHeight(long value)
minimumQuadrantHeight attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for minimumQuadrantHeightthis objectpublic final QuadTreeConfigurationL 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)
QuadTreeConfigurationL that have equal attribute values.public int hashCode()
area, minimumQuadrantWidth, minimumQuadrantHeight, trimOnRemove.public String toString()
QuadTreeConfigurationL with attribute values.public static QuadTreeConfigurationL of(com.io7m.jregions.core.unparameterized.areas.AreaL area, long minimumQuadrantWidth, long minimumQuadrantHeight, boolean trimOnRemove)
QuadTreeConfigurationL instance.area - The value for the area attributeminimumQuadrantWidth - The value for the minimumQuadrantWidth attributeminimumQuadrantHeight - The value for the minimumQuadrantHeight attributetrimOnRemove - The value for the trimOnRemove attributepublic static QuadTreeConfigurationL copyOf(QuadTreeConfigurationLType instance)
QuadTreeConfigurationLType 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 QuadTreeConfigurationL.Builder builder()
QuadTreeConfigurationL.Copyright © 2017 <code@io7m.com> http://io7m.com