S - A phantom type parameter indicating the coordinate space of the
areaPAreaSizeIType<S>, AreaSizeValuesITypepublic final class PAreaSizeI<S> extends java.lang.Object implements PAreaSizeIType<S>
| Modifier and Type | Class | Description |
|---|---|---|
static class |
PAreaSizeI.Builder<S> |
Builds instances of type
PAreaSizeI. |
| Modifier and Type | Method | Description |
|---|---|---|
static <S> PAreaSizeI.Builder<S> |
builder() |
Creates a builder for
PAreaSizeI. |
boolean |
equals(java.lang.Object another) |
This instance is equal to all instances of
PAreaSizeI that have equal attribute values. |
int |
hashCode() |
Computes a hash code from attributes:
sizeX, sizeY. |
int |
height() |
Deprecated.
Use
sizeY() |
static <S> PAreaSizeI<S> |
of(int sizeX,
int sizeY) |
Construct a new immutable
PAreaSizeI instance. |
int |
sizeX() |
|
int |
sizeY() |
|
java.lang.String |
toString() |
Prints the immutable value
PAreaSizeI with attribute values. |
int |
width() |
Deprecated.
Use
sizeX() |
public int sizeX()
sizeX in interface AreaSizeValuesITypesizeX in interface PAreaSizeIType<S>sizeX attributepublic int sizeY()
sizeY in interface AreaSizeValuesITypesizeY in interface PAreaSizeIType<S>sizeY attribute@Deprecated public int width()
sizeX()width in interface AreaSizeValuesIType@Deprecated public int height()
sizeY()height in interface AreaSizeValuesITypepublic boolean equals(java.lang.Object another)
PAreaSizeI that have equal attribute values.equals in class java.lang.Objecttrue if this is equal to another instancepublic int hashCode()
sizeX, sizeY.hashCode in class java.lang.Objectpublic java.lang.String toString()
PAreaSizeI with attribute values.toString in class java.lang.Objectpublic static <S> PAreaSizeI<S> of(int sizeX, int sizeY)
PAreaSizeI instance.sizeX - The value for the sizeX attributesizeY - The value for the sizeY attributepublic static <S> PAreaSizeI.Builder<S> builder()
PAreaSizeI.S - generic parameter SCopyright © 2017 <code@io7m.com> http://io7m.com