S - A phantom type parameter indicating the coordinate space of the
volumePVolumeIType<S>, VolumeSizeValuesIType, VolumeValuesITypepublic final class PVolumeI<S> extends java.lang.Object implements PVolumeIType<S>
A volume with int 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 and Z axes.
| Modifier and Type | Class | Description |
|---|---|---|
static class |
PVolumeI.Builder<S> |
Builds instances of type
PVolumeI. |
| Modifier and Type | Method | Description |
|---|---|---|
static <S> PVolumeI.Builder<S> |
builder() |
Creates a builder for
PVolumeI. |
boolean |
equals(java.lang.Object another) |
This instance is equal to all instances of
PVolumeI that have equal attribute values. |
int |
hashCode() |
Computes a hash code from attributes:
minimumX, maximumX, minimumY, maximumY, minimumZ, maximumZ. |
int |
maximumX() |
|
int |
maximumY() |
|
int |
maximumZ() |
|
int |
minimumX() |
|
int |
minimumY() |
|
int |
minimumZ() |
|
static <S> PVolumeI<S> |
of(int minimumX,
int maximumX,
int minimumY,
int maximumY,
int minimumZ,
int maximumZ) |
Construct a new immutable
PVolumeI instance. |
java.lang.String |
toString() |
Prints the immutable value
PVolumeI with attribute values. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcheckPreconditionssizeX, sizeY, sizeZpublic int minimumX()
minimumX in interface PVolumeIType<S>minimumX in interface VolumeValuesITypeminimumX attributepublic int maximumX()
maximumX in interface PVolumeIType<S>maximumX in interface VolumeValuesITypemaximumX attributepublic int minimumY()
minimumY in interface PVolumeIType<S>minimumY in interface VolumeValuesITypeminimumY attributepublic int maximumY()
maximumY in interface PVolumeIType<S>maximumY in interface VolumeValuesITypemaximumY attributepublic int minimumZ()
minimumZ in interface PVolumeIType<S>minimumZ in interface VolumeValuesITypeminimumZ attributepublic int maximumZ()
maximumZ in interface PVolumeIType<S>maximumZ in interface VolumeValuesITypemaximumZ attributepublic boolean equals(java.lang.Object another)
PVolumeI that have equal attribute values.equals in class java.lang.Objecttrue if this is equal to another instancepublic int hashCode()
minimumX, maximumX, minimumY, maximumY, minimumZ, maximumZ.hashCode in class java.lang.Objectpublic java.lang.String toString()
PVolumeI with attribute values.toString in class java.lang.Objectpublic static <S> PVolumeI<S> of(int minimumX, int maximumX, int minimumY, int maximumY, int minimumZ, int maximumZ)
PVolumeI 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 attributeminimumZ - The value for the minimumZ attributemaximumZ - The value for the maximumZ attributepublic static <S> PVolumeI.Builder<S> builder()
PVolumeI.S - generic parameter SCopyright © 2017 <code@io7m.com> http://io7m.com