S - A phantom type parameter indicating the coordinate space of the
volumePVolumeSizeIType<S>, VolumeSizeValuesITypepublic final class PVolumeSizeI<S> extends java.lang.Object implements PVolumeSizeIType<S>
| Modifier and Type | Class | Description |
|---|---|---|
static class |
PVolumeSizeI.Builder<S> |
Builds instances of type
PVolumeSizeI. |
| Modifier and Type | Method | Description |
|---|---|---|
static <S> PVolumeSizeI.Builder<S> |
builder() |
Creates a builder for
PVolumeSizeI. |
boolean |
equals(java.lang.Object another) |
This instance is equal to all instances of
PVolumeSizeI that have equal attribute values. |
int |
hashCode() |
Computes a hash code from attributes:
sizeX, sizeY, sizeZ. |
static <S> PVolumeSizeI<S> |
of(int sizeX,
int sizeY,
int sizeZ) |
Construct a new immutable
PVolumeSizeI instance. |
int |
sizeX() |
|
int |
sizeY() |
|
int |
sizeZ() |
|
java.lang.String |
toString() |
Prints the immutable value
PVolumeSizeI with attribute values. |
public int sizeX()
sizeX in interface PVolumeSizeIType<S>sizeX in interface VolumeSizeValuesITypesizeX attributepublic int sizeY()
sizeY in interface PVolumeSizeIType<S>sizeY in interface VolumeSizeValuesITypesizeY attributepublic int sizeZ()
sizeZ in interface PVolumeSizeIType<S>sizeZ in interface VolumeSizeValuesITypesizeZ attributepublic boolean equals(java.lang.Object another)
PVolumeSizeI that have equal attribute values.equals in class java.lang.Objecttrue if this is equal to another instancepublic int hashCode()
sizeX, sizeY, sizeZ.hashCode in class java.lang.Objectpublic java.lang.String toString()
PVolumeSizeI with attribute values.toString in class java.lang.Objectpublic static <S> PVolumeSizeI<S> of(int sizeX, int sizeY, int sizeZ)
PVolumeSizeI instance.sizeX - The value for the sizeX attributesizeY - The value for the sizeY attributesizeZ - The value for the sizeZ attributepublic static <S> PVolumeSizeI.Builder<S> builder()
PVolumeSizeI.S - generic parameter SCopyright © 2017 <code@io7m.com> http://io7m.com