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