Class PVolumeXYZSplitI<S,T extends PVolumeIType<S>>
java.lang.Object
com.io7m.jregions.core.parameterized.volumes.PVolumeXYZSplitI<S,T>
- Type Parameters:
S
- A phantom type parameter indicating the coordinate space of the areaT
- The precise type of volume
- All Implemented Interfaces:
PVolumeXYZSplitIType<S,
T>
public final class PVolumeXYZSplitI<S,T extends PVolumeIType<S>>
extends Object
implements PVolumeXYZSplitIType<S,T>
A volume that has been split into octants via an X, Y, and Z axis.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
PVolumeXYZSplitI.Builder<S,
T extends PVolumeIType<S>> Builds instances of typePVolumeXYZSplitI
. -
Method Summary
Modifier and TypeMethodDescriptionstatic <S,
T extends PVolumeIType<S>>
PVolumeXYZSplitI.Builder<S,T> builder()
Creates a builder forPVolumeXYZSplitI
.static <S,
T extends PVolumeIType<S>>
PVolumeXYZSplitI<S,T> copyOf
(PVolumeXYZSplitIType<S, T> instance) Creates an immutable copy of aPVolumeXYZSplitIType
value.boolean
This instance is equal to all instances ofPVolumeXYZSplitI
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:x0y0z0
,x1y0z0
,x0y1z0
,x1y1z0
,x0y0z1
,x1y0z1
,x0y1z1
,x1y1z1
.static <S,
T extends PVolumeIType<S>>
PVolumeXYZSplitI<S,T> of
(T x0y0z0, T x1y0z0, T x0y1z0, T x1y1z0, T x0y0z1, T x1y0z1, T x0y1z1, T x1y1z1) Construct a new immutablePVolumeXYZSplitI
instance.toString()
Prints the immutable valuePVolumeXYZSplitI
with attribute values.final PVolumeXYZSplitI<S,
T> withX0y0z0
(T value) Copy the current immutable object by setting a value for thex0y0z0
attribute.final PVolumeXYZSplitI<S,
T> withX0y0z1
(T value) Copy the current immutable object by setting a value for thex0y0z1
attribute.final PVolumeXYZSplitI<S,
T> withX0y1z0
(T value) Copy the current immutable object by setting a value for thex0y1z0
attribute.final PVolumeXYZSplitI<S,
T> withX0y1z1
(T value) Copy the current immutable object by setting a value for thex0y1z1
attribute.final PVolumeXYZSplitI<S,
T> withX1y0z0
(T value) Copy the current immutable object by setting a value for thex1y0z0
attribute.final PVolumeXYZSplitI<S,
T> withX1y0z1
(T value) Copy the current immutable object by setting a value for thex1y0z1
attribute.final PVolumeXYZSplitI<S,
T> withX1y1z0
(T value) Copy the current immutable object by setting a value for thex1y1z0
attribute.final PVolumeXYZSplitI<S,
T> withX1y1z1
(T value) Copy the current immutable object by setting a value for thex1y1z1
attribute.x0y0z0()
x0y0z1()
x0y1z0()
x0y1z1()
x1y0z0()
x1y0z1()
x1y1z0()
x1y1z1()
-
Method Details
-
x0y0z0
- Specified by:
x0y0z0
in interfacePVolumeXYZSplitIType<S,
T extends PVolumeIType<S>> - Returns:
- The minimum X, minimum Y, minimum Z octant
-
x1y0z0
- Specified by:
x1y0z0
in interfacePVolumeXYZSplitIType<S,
T extends PVolumeIType<S>> - Returns:
- The maximum X, minimum Y, minimum Z octant
-
x0y1z0
- Specified by:
x0y1z0
in interfacePVolumeXYZSplitIType<S,
T extends PVolumeIType<S>> - Returns:
- The minimum X, maximum Y, minimum Z octant
-
x1y1z0
- Specified by:
x1y1z0
in interfacePVolumeXYZSplitIType<S,
T extends PVolumeIType<S>> - Returns:
- The maximum X, maximum Y, minimum Z octant
-
x0y0z1
- Specified by:
x0y0z1
in interfacePVolumeXYZSplitIType<S,
T extends PVolumeIType<S>> - Returns:
- The minimum X, minimum Y, maximum Z octant
-
x1y0z1
- Specified by:
x1y0z1
in interfacePVolumeXYZSplitIType<S,
T extends PVolumeIType<S>> - Returns:
- The maximum X, minimum Y, maximum Z octant
-
x0y1z1
- Specified by:
x0y1z1
in interfacePVolumeXYZSplitIType<S,
T extends PVolumeIType<S>> - Returns:
- The minimum X, maximum Y, maximum Z octant
-
x1y1z1
- Specified by:
x1y1z1
in interfacePVolumeXYZSplitIType<S,
T extends PVolumeIType<S>> - Returns:
- The maximum X, maximum Y, maximum Z octant
-
withX0y0z0
Copy the current immutable object by setting a value for thex0y0z0
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for x0y0z0- Returns:
- A modified copy of the
this
object
-
withX1y0z0
Copy the current immutable object by setting a value for thex1y0z0
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for x1y0z0- Returns:
- A modified copy of the
this
object
-
withX0y1z0
Copy the current immutable object by setting a value for thex0y1z0
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for x0y1z0- Returns:
- A modified copy of the
this
object
-
withX1y1z0
Copy the current immutable object by setting a value for thex1y1z0
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for x1y1z0- Returns:
- A modified copy of the
this
object
-
withX0y0z1
Copy the current immutable object by setting a value for thex0y0z1
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for x0y0z1- Returns:
- A modified copy of the
this
object
-
withX1y0z1
Copy the current immutable object by setting a value for thex1y0z1
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for x1y0z1- Returns:
- A modified copy of the
this
object
-
withX0y1z1
Copy the current immutable object by setting a value for thex0y1z1
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for x0y1z1- Returns:
- A modified copy of the
this
object
-
withX1y1z1
Copy the current immutable object by setting a value for thex1y1z1
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for x1y1z1- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofPVolumeXYZSplitI
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:x0y0z0
,x1y0z0
,x0y1z0
,x1y1z0
,x0y0z1
,x1y0z1
,x0y1z1
,x1y1z1
. -
toString
Prints the immutable valuePVolumeXYZSplitI
with attribute values. -
of
public static <S,T extends PVolumeIType<S>> PVolumeXYZSplitI<S,T> of(T x0y0z0, T x1y0z0, T x0y1z0, T x1y1z0, T x0y0z1, T x1y0z1, T x0y1z1, T x1y1z1) Construct a new immutablePVolumeXYZSplitI
instance.- Type Parameters:
S
- generic parameter ST
- generic parameter T- Parameters:
x0y0z0
- The value for thex0y0z0
attributex1y0z0
- The value for thex1y0z0
attributex0y1z0
- The value for thex0y1z0
attributex1y1z0
- The value for thex1y1z0
attributex0y0z1
- The value for thex0y0z1
attributex1y0z1
- The value for thex1y0z1
attributex0y1z1
- The value for thex0y1z1
attributex1y1z1
- The value for thex1y1z1
attribute- Returns:
- An immutable PVolumeXYZSplitI instance
-
copyOf
public static <S,T extends PVolumeIType<S>> PVolumeXYZSplitI<S,T> copyOf(PVolumeXYZSplitIType<S, T> instance) Creates an immutable copy of aPVolumeXYZSplitIType
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 ST
- generic parameter T- Parameters:
instance
- The instance to copy- Returns:
- A copied immutable PVolumeXYZSplitI instance
-
builder
Creates a builder forPVolumeXYZSplitI
.PVolumeXYZSplitI.<S, T>builder() .setX0y0z0(T) // required
x0y0z0
.setX1y0z0(T) // requiredx1y0z0
.setX0y1z0(T) // requiredx0y1z0
.setX1y1z0(T) // requiredx1y1z0
.setX0y0z1(T) // requiredx0y0z1
.setX1y0z1(T) // requiredx1y0z1
.setX0y1z1(T) // requiredx0y1z1
.setX1y1z1(T) // requiredx1y1z1
.build();- Type Parameters:
S
- generic parameter ST
- generic parameter T- Returns:
- A new PVolumeXYZSplitI builder
-