T - A phantom type parameterPVector3LType<T>, PVectorReadable2LType<T>, PVectorReadable3LType<T>, VectorReadable2LType, VectorReadable3LType, VectorComputationalTypepublic final class PVector3L<T> extends Object implements PVector3LType<T>
long-typed vectors.| Modifier and Type | Class | Description |
|---|---|---|
static class |
PVector3L.Builder<T> |
Builds instances of type
PVector3L. |
| Modifier and Type | Method | Description |
|---|---|---|
static <T> PVector3L.Builder<T> |
builder() |
Creates a builder for
PVector3L. |
boolean |
equals(Object another) |
This instance is equal to all instances of
PVector3L that have equal attribute values. |
int |
hashCode() |
Computes a hash code from attributes:
x, y, z. |
static <T> PVector3L<T> |
of(long x,
long y,
long z) |
Construct a new immutable
PVector3L instance. |
String |
toString() |
Prints the immutable value
PVector3L with attribute values. |
long |
x() |
|
long |
y() |
|
long |
z() |
public long x()
x in interface PVector3LType<T>x in interface VectorReadable2LTypex attributepublic long y()
y in interface PVector3LType<T>y in interface VectorReadable2LTypey attributepublic long z()
z in interface PVector3LType<T>z in interface VectorReadable3LTypez attributepublic boolean equals(Object another)
PVector3L that have equal attribute values.public int hashCode()
x, y, z.public String toString()
PVector3L with attribute values.public static <T> PVector3L<T> of(long x, long y, long z)
PVector3L instance.x - The value for the x attributey - The value for the y attributez - The value for the z attributepublic static <T> PVector3L.Builder<T> builder()
PVector3L.T - generic parameter TCopyright © 2017 <code@io7m.com> http://io7m.com