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