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