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