S - A phantom type parameter indicating the coordinate space of the
area@Generated(value={"Immutables.generator","PAreaIType<S>"}) public final class PAreaI<S> extends Object implements PAreaIType<S>
An area with int coordinates.
The coordinates of the area are given in half-closed form. That is,
minimumX() refers to the minimum inclusive value on the X
axis, and maximumX() refers to the maximum exclusive value on
the X axis. Likewise for the Y axis.
| Modifier and Type | Class and Description |
|---|---|
static class |
PAreaI.Builder<S>
Builds instances of type
PAreaI. |
| Modifier and Type | Method and Description |
|---|---|
static <S> PAreaI.Builder<S> |
builder()
Creates a builder for
PAreaI. |
boolean |
equals(Object another)
This instance is equal to all instances of
PAreaI that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
minimumX, maximumX, minimumY, maximumY. |
int |
height()
Deprecated.
|
int |
maximumX() |
int |
maximumY() |
int |
minimumX() |
int |
minimumY() |
static <S> PAreaI<S> |
of(int minimumX,
int maximumX,
int minimumY,
int maximumY)
Construct a new immutable
PAreaI instance. |
String |
toString()
Prints the immutable value
PAreaI with attribute values. |
int |
width()
Deprecated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcheckPreconditionssizeX, sizeYpublic int minimumX()
minimumX in interface PAreaIType<S>minimumX in interface AreaValuesITypeminimumX attributepublic int maximumX()
maximumX in interface PAreaIType<S>maximumX in interface AreaValuesITypemaximumX attributepublic int minimumY()
minimumY in interface PAreaIType<S>minimumY in interface AreaValuesITypeminimumY attributepublic int maximumY()
maximumY in interface PAreaIType<S>maximumY in interface AreaValuesITypemaximumY attribute@Deprecated public int width()
AreaValuesIType.sizeX()width in interface AreaSizeValuesIType@Deprecated public int height()
AreaValuesIType.sizeY()height in interface AreaSizeValuesITypepublic boolean equals(Object another)
PAreaI that have equal attribute values.public int hashCode()
minimumX, maximumX, minimumY, maximumY.public String toString()
PAreaI with attribute values.public static <S> PAreaI<S> of(int minimumX, int maximumX, int minimumY, int maximumY)
PAreaI instance.minimumX - The value for the minimumX attributemaximumX - The value for the maximumX attributeminimumY - The value for the minimumY attributemaximumY - The value for the maximumY attributepublic static <S> PAreaI.Builder<S> builder()
PAreaI.S - generic parameter SCopyright © 2017 <code@io7m.com> http://io7m.com