T - The precise type of objects@Generated(value={"Immutables.generator","OctTreeRaycastResultDType<T>"}) public final class OctTreeRaycastResultD<T> extends Object implements OctTreeRaycastResultDType<T>
| Modifier and Type | Class and Description |
|---|---|
static class |
OctTreeRaycastResultD.Builder<T>
Builds instances of type
OctTreeRaycastResultD. |
| Modifier and Type | Method and Description |
|---|---|
static <T> OctTreeRaycastResultD.Builder<T> |
builder()
Creates a builder for
OctTreeRaycastResultD. |
static <T> OctTreeRaycastResultD<T> |
copyOf(OctTreeRaycastResultDType<T> instance)
Creates an immutable copy of a
OctTreeRaycastResultDType value. |
double |
distance() |
boolean |
equals(Object another)
This instance is equal to all instances of
OctTreeRaycastResultD that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
distance, volume, item. |
T |
item() |
static <T> OctTreeRaycastResultD<T> |
of(double distance,
com.io7m.jregions.core.unparameterized.volumes.VolumeD volume,
T item)
Construct a new immutable
OctTreeRaycastResultD instance. |
String |
toString()
Prints the immutable value
OctTreeRaycastResultD with attribute values. |
com.io7m.jregions.core.unparameterized.volumes.VolumeD |
volume() |
OctTreeRaycastResultD<T> |
withDistance(double value)
Copy the current immutable object by setting a value for the
distance attribute. |
OctTreeRaycastResultD<T> |
withItem(T value)
Copy the current immutable object by setting a value for the
item attribute. |
OctTreeRaycastResultD<T> |
withVolume(com.io7m.jregions.core.unparameterized.volumes.VolumeD value)
Copy the current immutable object by setting a value for the
volume attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcompareTopublic double distance()
distance in interface OctTreeRaycastResultDType<T>public com.io7m.jregions.core.unparameterized.volumes.VolumeD volume()
volume in interface OctTreeRaycastResultDType<T>public T item()
item in interface OctTreeRaycastResultDType<T>public final OctTreeRaycastResultD<T> withDistance(double value)
distance attribute.
A value strict bits equality used to prevent copying of the same value by returning this.value - A new value for distancethis objectpublic final OctTreeRaycastResultD<T> 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 OctTreeRaycastResultD<T> withItem(T value)
item attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for itemthis objectpublic boolean equals(Object another)
OctTreeRaycastResultD that have equal attribute values.public int hashCode()
distance, volume, item.public String toString()
OctTreeRaycastResultD with attribute values.public static <T> OctTreeRaycastResultD<T> of(double distance, com.io7m.jregions.core.unparameterized.volumes.VolumeD volume, T item)
OctTreeRaycastResultD instance.distance - The value for the distance attributevolume - The value for the volume attributeitem - The value for the item attributepublic static <T> OctTreeRaycastResultD<T> copyOf(OctTreeRaycastResultDType<T> instance)
OctTreeRaycastResultDType value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.T - generic parameter Tinstance - The instance to copypublic static <T> OctTreeRaycastResultD.Builder<T> builder()
OctTreeRaycastResultD.T - generic parameter TCopyright © 2017 <code@io7m.com> http://io7m.com