Class PVolumeBI<S>
java.lang.Object
com.io7m.jregions.core.parameterized.volumes.PVolumeBI<S>
- Type Parameters:
S
- A phantom type parameter indicating the coordinate space of the volume
- All Implemented Interfaces:
PVolumeBIType<S>
,VolumeSizeValuesBIType
,VolumeValuesBIType
A volume with BigInteger
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.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <S> PVolumeBI.Builder<S>
builder()
Creates a builder forPVolumeBI
.static <S> PVolumeBI<S>
copyOf
(PVolumeBIType<S> instance) Creates an immutable copy of aPVolumeBIType
value.boolean
This instance is equal to all instances ofPVolumeBI
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:minimumX
,maximumX
,minimumY
,maximumY
,minimumZ
,maximumZ
.maximumX()
maximumY()
maximumZ()
minimumX()
minimumY()
minimumZ()
static <S> PVolumeBI<S>
of
(BigInteger minimumX, BigInteger maximumX, BigInteger minimumY, BigInteger maximumY, BigInteger minimumZ, BigInteger maximumZ) Construct a new immutablePVolumeBI
instance.toString()
Prints the immutable valuePVolumeBI
with attribute values.withMaximumX
(BigInteger value) Copy the current immutable object by setting a value for themaximumX
attribute.withMaximumY
(BigInteger value) Copy the current immutable object by setting a value for themaximumY
attribute.withMaximumZ
(BigInteger value) Copy the current immutable object by setting a value for themaximumZ
attribute.withMinimumX
(BigInteger value) Copy the current immutable object by setting a value for theminimumX
attribute.withMinimumY
(BigInteger value) Copy the current immutable object by setting a value for theminimumY
attribute.withMinimumZ
(BigInteger value) Copy the current immutable object by setting a value for theminimumZ
attribute.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.io7m.jregions.core.parameterized.volumes.PVolumeBIType
checkPreconditions
Methods inherited from interface com.io7m.jregions.core.unparameterized.volumes.VolumeValuesBIType
sizeX, sizeY, sizeZ
-
Method Details
-
minimumX
- Specified by:
minimumX
in interfacePVolumeBIType<S>
- Specified by:
minimumX
in interfaceVolumeValuesBIType
- Returns:
- The value of the
minimumX
attribute
-
maximumX
- Specified by:
maximumX
in interfacePVolumeBIType<S>
- Specified by:
maximumX
in interfaceVolumeValuesBIType
- Returns:
- The value of the
maximumX
attribute
-
minimumY
- Specified by:
minimumY
in interfacePVolumeBIType<S>
- Specified by:
minimumY
in interfaceVolumeValuesBIType
- Returns:
- The value of the
minimumY
attribute
-
maximumY
- Specified by:
maximumY
in interfacePVolumeBIType<S>
- Specified by:
maximumY
in interfaceVolumeValuesBIType
- Returns:
- The value of the
maximumY
attribute
-
minimumZ
- Specified by:
minimumZ
in interfacePVolumeBIType<S>
- Specified by:
minimumZ
in interfaceVolumeValuesBIType
- Returns:
- The value of the
minimumZ
attribute
-
maximumZ
- Specified by:
maximumZ
in interfacePVolumeBIType<S>
- Specified by:
maximumZ
in interfaceVolumeValuesBIType
- Returns:
- The value of the
maximumZ
attribute
-
withMinimumX
Copy the current immutable object by setting a value for theminimumX
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for minimumX- Returns:
- A modified copy of the
this
object
-
withMaximumX
Copy the current immutable object by setting a value for themaximumX
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for maximumX- Returns:
- A modified copy of the
this
object
-
withMinimumY
Copy the current immutable object by setting a value for theminimumY
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for minimumY- Returns:
- A modified copy of the
this
object
-
withMaximumY
Copy the current immutable object by setting a value for themaximumY
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for maximumY- Returns:
- A modified copy of the
this
object
-
withMinimumZ
Copy the current immutable object by setting a value for theminimumZ
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for minimumZ- Returns:
- A modified copy of the
this
object
-
withMaximumZ
Copy the current immutable object by setting a value for themaximumZ
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for maximumZ- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofPVolumeBI
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:minimumX
,maximumX
,minimumY
,maximumY
,minimumZ
,maximumZ
. -
toString
Prints the immutable valuePVolumeBI
with attribute values. -
of
public static <S> PVolumeBI<S> of(BigInteger minimumX, BigInteger maximumX, BigInteger minimumY, BigInteger maximumY, BigInteger minimumZ, BigInteger maximumZ) Construct a new immutablePVolumeBI
instance.- Type Parameters:
S
- generic parameter S- Parameters:
minimumX
- The value for theminimumX
attributemaximumX
- The value for themaximumX
attributeminimumY
- The value for theminimumY
attributemaximumY
- The value for themaximumY
attributeminimumZ
- The value for theminimumZ
attributemaximumZ
- The value for themaximumZ
attribute- Returns:
- An immutable PVolumeBI instance
-
copyOf
Creates an immutable copy of aPVolumeBIType
value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Type Parameters:
S
- generic parameter S- Parameters:
instance
- The instance to copy- Returns:
- A copied immutable PVolumeBI instance
-
builder
Creates a builder forPVolumeBI
.PVolumeBI.<S>builder() .setMinimumX(java.math.BigInteger) // required
minimumX
.setMaximumX(java.math.BigInteger) // requiredmaximumX
.setMinimumY(java.math.BigInteger) // requiredminimumY
.setMaximumY(java.math.BigInteger) // requiredmaximumY
.setMinimumZ(java.math.BigInteger) // requiredminimumZ
.setMaximumZ(java.math.BigInteger) // requiredmaximumZ
.build();- Type Parameters:
S
- generic parameter S- Returns:
- A new PVolumeBI builder
-