@Generated(value={"Immutables.generator","AreaBDType"}) public final class AreaBD extends Object implements AreaBDType
An area with BigDecimal 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 |
AreaBD.Builder
Builds instances of type
AreaBD. |
| Modifier and Type | Method and Description |
|---|---|
static AreaBD.Builder |
builder()
Creates a builder for
AreaBD. |
boolean |
equals(Object another)
This instance is equal to all instances of
AreaBD that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
minimumX, maximumX, minimumY, maximumY. |
BigDecimal |
height() |
BigDecimal |
maximumX() |
BigDecimal |
maximumY() |
BigDecimal |
minimumX() |
BigDecimal |
minimumY() |
static AreaBD |
of(BigDecimal minimumX,
BigDecimal maximumX,
BigDecimal minimumY,
BigDecimal maximumY)
Construct a new immutable
AreaBD instance. |
String |
toString()
Prints the immutable value
AreaBD with attribute values. |
BigDecimal |
width() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcheckPreconditionspublic BigDecimal minimumX()
minimumX in interface AreaBDTypeminimumX in interface AreaValuesBDTypeminimumX attributepublic BigDecimal maximumX()
maximumX in interface AreaBDTypemaximumX in interface AreaValuesBDTypemaximumX attributepublic BigDecimal minimumY()
minimumY in interface AreaBDTypeminimumY in interface AreaValuesBDTypeminimumY attributepublic BigDecimal maximumY()
maximumY in interface AreaBDTypemaximumY in interface AreaValuesBDTypemaximumY attributepublic boolean equals(Object another)
AreaBD that have equal attribute values.public int hashCode()
minimumX, maximumX, minimumY, maximumY.public String toString()
AreaBD with attribute values.public BigDecimal 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 AreaValuesBDTypewidth in interface AreaSizeValuesBDTypel.name attributepublic BigDecimal 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 AreaValuesBDTypeheight in interface AreaSizeValuesBDTypel.name attributepublic static AreaBD of(BigDecimal minimumX, BigDecimal maximumX, BigDecimal minimumY, BigDecimal maximumY)
AreaBD 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 AreaBD.Builder builder()
AreaBD.Copyright © 2017 <code@io7m.com> http://io7m.com