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