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