Class VolumeXYZSplitD<T extends VolumeDType>
java.lang.Object
com.io7m.jregions.core.unparameterized.volumes.VolumeXYZSplitD<T>
- Type Parameters:
T- The precise type of volume
- All Implemented Interfaces:
VolumeXYZSplitDType<T>
public final class VolumeXYZSplitD<T extends VolumeDType> extends java.lang.Object implements VolumeXYZSplitDType<T>
A volume that has been split into octants via an X, Y, and Z axis.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVolumeXYZSplitD.Builder<T extends VolumeDType>Builds instances of typeVolumeXYZSplitD. -
Method Summary
Modifier and Type Method Description static <T extends VolumeDType>
VolumeXYZSplitD.Builder<T>builder()Creates a builder forVolumeXYZSplitD.static <T extends VolumeDType>
VolumeXYZSplitD<T>copyOf(VolumeXYZSplitDType<T> instance)Creates an immutable copy of aVolumeXYZSplitDTypevalue.booleanequals(java.lang.Object another)This instance is equal to all instances ofVolumeXYZSplitDthat have equal attribute values.inthashCode()Computes a hash code from attributes:x0y0z0,x1y0z0,x0y1z0,x1y1z0,x0y0z1,x1y0z1,x0y1z1,x1y1z1.static <T extends VolumeDType>
VolumeXYZSplitD<T>of(T x0y0z0, T x1y0z0, T x0y1z0, T x1y1z0, T x0y0z1, T x1y0z1, T x0y1z1, T x1y1z1)Construct a new immutableVolumeXYZSplitDinstance.java.lang.StringtoString()Prints the immutable valueVolumeXYZSplitDwith attribute values.VolumeXYZSplitD<T>withX0y0z0(T value)Copy the current immutable object by setting a value for thex0y0z0attribute.VolumeXYZSplitD<T>withX0y0z1(T value)Copy the current immutable object by setting a value for thex0y0z1attribute.VolumeXYZSplitD<T>withX0y1z0(T value)Copy the current immutable object by setting a value for thex0y1z0attribute.VolumeXYZSplitD<T>withX0y1z1(T value)Copy the current immutable object by setting a value for thex0y1z1attribute.VolumeXYZSplitD<T>withX1y0z0(T value)Copy the current immutable object by setting a value for thex1y0z0attribute.VolumeXYZSplitD<T>withX1y0z1(T value)Copy the current immutable object by setting a value for thex1y0z1attribute.VolumeXYZSplitD<T>withX1y1z0(T value)Copy the current immutable object by setting a value for thex1y1z0attribute.VolumeXYZSplitD<T>withX1y1z1(T value)Copy the current immutable object by setting a value for thex1y1z1attribute.Tx0y0z0()Tx0y0z1()Tx0y1z0()Tx0y1z1()Tx1y0z0()Tx1y0z1()Tx1y1z0()Tx1y1z1()
-
Method Details
-
x0y0z0
- Specified by:
x0y0z0in interfaceVolumeXYZSplitDType<T extends VolumeDType>- Returns:
- The minimum X, minimum Y, minimum Z octant
-
x1y0z0
- Specified by:
x1y0z0in interfaceVolumeXYZSplitDType<T extends VolumeDType>- Returns:
- The maximum X, minimum Y, minimum Z octant
-
x0y1z0
- Specified by:
x0y1z0in interfaceVolumeXYZSplitDType<T extends VolumeDType>- Returns:
- The minimum X, maximum Y, minimum Z octant
-
x1y1z0
- Specified by:
x1y1z0in interfaceVolumeXYZSplitDType<T extends VolumeDType>- Returns:
- The maximum X, maximum Y, minimum Z octant
-
x0y0z1
- Specified by:
x0y0z1in interfaceVolumeXYZSplitDType<T extends VolumeDType>- Returns:
- The minimum X, minimum Y, maximum Z octant
-
x1y0z1
- Specified by:
x1y0z1in interfaceVolumeXYZSplitDType<T extends VolumeDType>- Returns:
- The maximum X, minimum Y, maximum Z octant
-
x0y1z1
- Specified by:
x0y1z1in interfaceVolumeXYZSplitDType<T extends VolumeDType>- Returns:
- The minimum X, maximum Y, maximum Z octant
-
x1y1z1
- Specified by:
x1y1z1in interfaceVolumeXYZSplitDType<T extends VolumeDType>- Returns:
- The maximum X, maximum Y, maximum Z octant
-
withX0y0z0
Copy the current immutable object by setting a value for thex0y0z0attribute. 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
thisobject
-
withX1y0z0
Copy the current immutable object by setting a value for thex1y0z0attribute. 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
thisobject
-
withX0y1z0
Copy the current immutable object by setting a value for thex0y1z0attribute. 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
thisobject
-
withX1y1z0
Copy the current immutable object by setting a value for thex1y1z0attribute. 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
thisobject
-
withX0y0z1
Copy the current immutable object by setting a value for thex0y0z1attribute. 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
thisobject
-
withX1y0z1
Copy the current immutable object by setting a value for thex1y0z1attribute. 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
thisobject
-
withX0y1z1
Copy the current immutable object by setting a value for thex0y1z1attribute. 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
thisobject
-
withX1y1z1
Copy the current immutable object by setting a value for thex1y1z1attribute. 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
thisobject
-
equals
public boolean equals(java.lang.Object another)This instance is equal to all instances ofVolumeXYZSplitDthat have equal attribute values.- Overrides:
equalsin classjava.lang.Object- Returns:
trueifthisis equal toanotherinstance
-
hashCode
public int hashCode()Computes a hash code from attributes:x0y0z0,x1y0z0,x0y1z0,x1y1z0,x0y0z1,x1y0z1,x0y1z1,x1y1z1.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hashCode value
-
toString
public java.lang.String toString()Prints the immutable valueVolumeXYZSplitDwith attribute values.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of the value
-
of
public static <T extends VolumeDType> VolumeXYZSplitD<T> of(T x0y0z0, T x1y0z0, T x0y1z0, T x1y1z0, T x0y0z1, T x1y0z1, T x0y1z1, T x1y1z1)Construct a new immutableVolumeXYZSplitDinstance.- Type Parameters:
T- generic parameter T- Parameters:
x0y0z0- The value for thex0y0z0attributex1y0z0- The value for thex1y0z0attributex0y1z0- The value for thex0y1z0attributex1y1z0- The value for thex1y1z0attributex0y0z1- The value for thex0y0z1attributex1y0z1- The value for thex1y0z1attributex0y1z1- The value for thex0y1z1attributex1y1z1- The value for thex1y1z1attribute- Returns:
- An immutable VolumeXYZSplitD instance
-
copyOf
Creates an immutable copy of aVolumeXYZSplitDTypevalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Type Parameters:
T- generic parameter T- Parameters:
instance- The instance to copy- Returns:
- A copied immutable VolumeXYZSplitD instance
-
builder
Creates a builder forVolumeXYZSplitD.VolumeXYZSplitD.<T>builder() .setX0y0z0(T) // requiredx0y0z0.setX1y0z0(T) // requiredx1y0z0.setX0y1z0(T) // requiredx0y1z0.setX1y1z0(T) // requiredx1y1z0.setX0y0z1(T) // requiredx0y0z1.setX1y0z1(T) // requiredx1y0z1.setX0y1z1(T) // requiredx0y1z1.setX1y1z1(T) // requiredx1y1z1.build();- Type Parameters:
T- generic parameter T- Returns:
- A new VolumeXYZSplitD builder
-