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