S - A phantom type parameter indicating the coordinate space of the
area@Generated(value={"Immutables.generator","PAreaLType<S>"}) public final class PAreaL<S> extends Object implements PAreaLType<S>
An area with long 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 |
PAreaL.Builder<S>
Builds instances of type
PAreaL. |
| Modifier and Type | Method and Description |
|---|---|
static <S> PAreaL.Builder<S> |
builder()
Creates a builder for
PAreaL. |
boolean |
equals(Object another)
This instance is equal to all instances of
PAreaL that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
minimumX, maximumX, minimumY, maximumY. |
long |
height() |
long |
maximumX() |
long |
maximumY() |
long |
minimumX() |
long |
minimumY() |
static <S> PAreaL<S> |
of(long minimumX,
long maximumX,
long minimumY,
long maximumY)
Construct a new immutable
PAreaL instance. |
String |
toString()
Prints the immutable value
PAreaL with attribute values. |
long |
width() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcheckPreconditionspublic long minimumX()
minimumX in interface PAreaLType<S>minimumX in interface AreaValuesLTypeminimumX attributepublic long maximumX()
maximumX in interface PAreaLType<S>maximumX in interface AreaValuesLTypemaximumX attributepublic long minimumY()
minimumY in interface PAreaLType<S>minimumY in interface AreaValuesLTypeminimumY attributepublic long maximumY()
maximumY in interface PAreaLType<S>maximumY in interface AreaValuesLTypemaximumY attributepublic boolean equals(Object another)
PAreaL that have equal attribute values.public int hashCode()
minimumX, maximumX, minimumY, maximumY.public String toString()
PAreaL with attribute values.public long width()
Returns a lazily initialized value of the width attribute.
Initialized once and only once and stored for subsequent access with proper synchronization.
width in interface AreaValuesLTypewidth in interface AreaSizeValuesLTypel.name attributepublic long height()
Returns a lazily initialized value of the height attribute.
Initialized once and only once and stored for subsequent access with proper synchronization.
height in interface AreaValuesLTypeheight in interface AreaSizeValuesLTypel.name attributepublic static <S> PAreaL<S> of(long minimumX, long maximumX, long minimumY, long maximumY)
PAreaL 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> PAreaL.Builder<S> builder()
PAreaL.S - generic parameter SCopyright © 2017 <code@io7m.com> http://io7m.com