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