@Generated(value={"Immutables.generator","Vector2IType"}) public final class Vector2I extends Object implements Vector2IType
int-typed vectors.| Modifier and Type | Class and Description |
|---|---|
static class |
Vector2I.Builder
Builds instances of type
Vector2I. |
| Modifier and Type | Method and Description |
|---|---|
static Vector2I.Builder |
builder()
Creates a builder for
Vector2I. |
boolean |
equals(Object another)
This instance is equal to all instances of
Vector2I that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
x, y. |
static Vector2I |
of(int x,
int y)
Construct a new immutable
Vector2I instance. |
String |
toString()
Prints the immutable value
Vector2I with attribute values. |
int |
x() |
int |
y() |
public int x()
x in interface Vector2ITypex in interface VectorReadable2ITypex attributepublic int y()
y in interface Vector2ITypey in interface VectorReadable2ITypey attributepublic boolean equals(Object another)
Vector2I that have equal attribute values.public int hashCode()
x, y.public String toString()
Vector2I with attribute values.public static Vector2I of(int x, int y)
Vector2I instance.x - The value for the x attributey - The value for the y attributepublic static Vector2I.Builder builder()
Vector2I.Copyright © 2017 <code@io7m.com> http://io7m.com