S - A phantom type parameter indicating the coordinate space of the
areaPAreaBIType<S>, AreaValuesBIType, AreaSizeValuesBITypepublic final class PAreaBI<S> extends java.lang.Object implements PAreaBIType<S>
An area with BigInteger 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 |
PAreaBI.Builder<S> |
Builds instances of type
PAreaBI. |
| Modifier and Type | Method | Description |
|---|---|---|
static <S> PAreaBI.Builder<S> |
builder() |
Creates a builder for
PAreaBI. |
boolean |
equals(java.lang.Object another) |
This instance is equal to all instances of
PAreaBI that have equal attribute values. |
int |
hashCode() |
Computes a hash code from attributes:
minimumX, maximumX, minimumY, maximumY. |
java.math.BigInteger |
height() |
Deprecated.
|
java.math.BigInteger |
maximumX() |
|
java.math.BigInteger |
maximumY() |
|
java.math.BigInteger |
minimumX() |
|
java.math.BigInteger |
minimumY() |
|
static <S> PAreaBI<S> |
of(java.math.BigInteger minimumX,
java.math.BigInteger maximumX,
java.math.BigInteger minimumY,
java.math.BigInteger maximumY) |
Construct a new immutable
PAreaBI instance. |
java.lang.String |
toString() |
Prints the immutable value
PAreaBI with attribute values. |
java.math.BigInteger |
width() |
Deprecated.
|
sizeX, sizeYclone, finalize, getClass, notify, notifyAll, wait, wait, waitcheckPreconditionspublic java.math.BigInteger minimumX()
minimumX in interface AreaValuesBITypeminimumX in interface PAreaBIType<S>minimumX attributepublic java.math.BigInteger maximumX()
maximumX in interface AreaValuesBITypemaximumX in interface PAreaBIType<S>maximumX attributepublic java.math.BigInteger minimumY()
minimumY in interface AreaValuesBITypeminimumY in interface PAreaBIType<S>minimumY attributepublic java.math.BigInteger maximumY()
maximumY in interface AreaValuesBITypemaximumY in interface PAreaBIType<S>maximumY attribute@Deprecated public java.math.BigInteger width()
AreaValuesBIType.sizeX()width in interface AreaSizeValuesBIType@Deprecated public java.math.BigInteger height()
AreaValuesBIType.sizeY()height in interface AreaSizeValuesBITypepublic boolean equals(java.lang.Object another)
PAreaBI 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()
PAreaBI with attribute values.toString in class java.lang.Objectpublic static <S> PAreaBI<S> of(java.math.BigInteger minimumX, java.math.BigInteger maximumX, java.math.BigInteger minimumY, java.math.BigInteger maximumY)
PAreaBI 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> PAreaBI.Builder<S> builder()
PAreaBI.S - generic parameter SCopyright © 2017 <code@io7m.com> http://io7m.com