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