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