@Generated(value={"Immutables.generator","AreaDType"}) public final class AreaD extends Object implements AreaDType
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 |
AreaD.Builder
Builds instances of type
AreaD. |
| Modifier and Type | Method and Description |
|---|---|
static AreaD.Builder |
builder()
Creates a builder for
AreaD. |
boolean |
equals(Object another)
This instance is equal to all instances of
AreaD 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 AreaD |
of(double minimumX,
double maximumX,
double minimumY,
double maximumY)
Construct a new immutable
AreaD instance. |
String |
toString()
Prints the immutable value
AreaD with attribute values. |
double |
width() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcheckPreconditionspublic double minimumX()
minimumX in interface AreaDTypeminimumX in interface AreaValuesDTypeminimumX attributepublic double maximumX()
maximumX in interface AreaDTypemaximumX in interface AreaValuesDTypemaximumX attributepublic double minimumY()
minimumY in interface AreaDTypeminimumY in interface AreaValuesDTypeminimumY attributepublic double maximumY()
maximumY in interface AreaDTypemaximumY in interface AreaValuesDTypemaximumY attributepublic boolean equals(Object another)
AreaD that have equal attribute values.public int hashCode()
minimumX, maximumX, minimumY, maximumY.public String toString()
AreaD 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 AreaValuesDTypewidth in interface AreaSizeValuesDTypel.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 AreaValuesDTypeheight in interface AreaSizeValuesDTypel.name attributepublic static AreaD of(double minimumX, double maximumX, double minimumY, double maximumY)
AreaD 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 AreaD.Builder builder()
AreaD.Copyright © 2017 <code@io7m.com> http://io7m.com