T - The precise type of objects@Generated(value={"Immutables.generator","OctTreeRaycastResultIType<T>"}) public final class OctTreeRaycastResultI<T> extends Object implements OctTreeRaycastResultIType<T>
| Modifier and Type | Class and Description |
|---|---|
static class |
OctTreeRaycastResultI.Builder<T>
Builds instances of type
OctTreeRaycastResultI. |
| Modifier and Type | Method and Description |
|---|---|
static <T> OctTreeRaycastResultI.Builder<T> |
builder()
Creates a builder for
OctTreeRaycastResultI. |
static <T> OctTreeRaycastResultI<T> |
copyOf(OctTreeRaycastResultIType<T> instance)
Creates an immutable copy of a
OctTreeRaycastResultIType value. |
double |
distance() |
boolean |
equals(Object another)
This instance is equal to all instances of
OctTreeRaycastResultI that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
distance, volume, item. |
T |
item() |
static <T> OctTreeRaycastResultI<T> |
of(double distance,
com.io7m.jregions.core.unparameterized.volumes.VolumeI volume,
T item)
Construct a new immutable
OctTreeRaycastResultI instance. |
String |
toString()
Prints the immutable value
OctTreeRaycastResultI with attribute values. |
com.io7m.jregions.core.unparameterized.volumes.VolumeI |
volume() |
OctTreeRaycastResultI<T> |
withDistance(double value)
Copy the current immutable object by setting a value for the
distance attribute. |
OctTreeRaycastResultI<T> |
withItem(T value)
Copy the current immutable object by setting a value for the
item attribute. |
OctTreeRaycastResultI<T> |
withVolume(com.io7m.jregions.core.unparameterized.volumes.VolumeI 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 OctTreeRaycastResultIType<T>public com.io7m.jregions.core.unparameterized.volumes.VolumeI volume()
volume in interface OctTreeRaycastResultIType<T>public T item()
item in interface OctTreeRaycastResultIType<T>public final OctTreeRaycastResultI<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 OctTreeRaycastResultI<T> 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 OctTreeRaycastResultI<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)
OctTreeRaycastResultI that have equal attribute values.public int hashCode()
distance, volume, item.public String toString()
OctTreeRaycastResultI with attribute values.public static <T> OctTreeRaycastResultI<T> of(double distance, com.io7m.jregions.core.unparameterized.volumes.VolumeI volume, T item)
OctTreeRaycastResultI instance.distance - The value for the distance attributevolume - The value for the volume attributeitem - The value for the item attributepublic static <T> OctTreeRaycastResultI<T> copyOf(OctTreeRaycastResultIType<T> instance)
OctTreeRaycastResultIType 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> OctTreeRaycastResultI.Builder<T> builder()
OctTreeRaycastResultI.T - generic parameter TCopyright © 2017 <code@io7m.com> http://io7m.com