AreaIType, AreaValuesIType, AreaSizeValuesITypepublic final class AreaI extends java.lang.Object implements AreaIType
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 | Description |
|---|---|---|
static class |
AreaI.Builder |
Builds instances of type
AreaI. |
| Modifier and Type | Method | Description |
|---|---|---|
static AreaI.Builder |
builder() |
Creates a builder for
AreaI. |
boolean |
equals(java.lang.Object another) |
This instance is equal to all instances of
AreaI 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 AreaI |
of(int minimumX,
int maximumX,
int minimumY,
int maximumY) |
Construct a new immutable
AreaI instance. |
java.lang.String |
toString() |
Prints the immutable value
AreaI with attribute values. |
int |
width() |
Deprecated.
|
checkPreconditionssizeX, sizeYpublic int minimumX()
minimumX in interface AreaITypeminimumX in interface AreaValuesITypeminimumX attributepublic int maximumX()
maximumX in interface AreaITypemaximumX in interface AreaValuesITypemaximumX attributepublic int minimumY()
minimumY in interface AreaITypeminimumY in interface AreaValuesITypeminimumY attributepublic int maximumY()
maximumY in interface AreaITypemaximumY 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(java.lang.Object another)
AreaI that have equal attribute values.equals in class java.lang.Objecttrue if this is equal to another instancepublic int hashCode()
minimumX, maximumX, minimumY, maximumY.hashCode in class java.lang.Objectpublic java.lang.String toString()
AreaI with attribute values.toString in class java.lang.Objectpublic static AreaI of(int minimumX, int maximumX, int minimumY, int maximumY)
AreaI 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 AreaI.Builder builder()
AreaI.Copyright © 2017 <code@io7m.com> http://io7m.com