Class VolumeXYZSplitI.Builder<T extends VolumeIType>
java.lang.Object
com.io7m.jregions.core.unparameterized.volumes.VolumeXYZSplitI.Builder<T>
- Enclosing class:
- VolumeXYZSplitI<T extends VolumeIType>
Builds instances of type
VolumeXYZSplitI.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newVolumeXYZSplitI.final VolumeXYZSplitI.Builder<T>from(VolumeXYZSplitIType<T> instance) Fill a builder with attribute values from the providedVolumeXYZSplitITypeinstance.final VolumeXYZSplitI.Builder<T>Initializes the value for thex0y0z0attribute.final VolumeXYZSplitI.Builder<T>Initializes the value for thex0y0z1attribute.final VolumeXYZSplitI.Builder<T>Initializes the value for thex0y1z0attribute.final VolumeXYZSplitI.Builder<T>Initializes the value for thex0y1z1attribute.final VolumeXYZSplitI.Builder<T>Initializes the value for thex1y0z0attribute.final VolumeXYZSplitI.Builder<T>Initializes the value for thex1y0z1attribute.final VolumeXYZSplitI.Builder<T>Initializes the value for thex1y1z0attribute.final VolumeXYZSplitI.Builder<T>Initializes the value for thex1y1z1attribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedVolumeXYZSplitITypeinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setX0y0z0
Initializes the value for thex0y0z0attribute.- Parameters:
x0y0z0- The value for x0y0z0- Returns:
thisbuilder for use in a chained invocation
-
setX1y0z0
Initializes the value for thex1y0z0attribute.- Parameters:
x1y0z0- The value for x1y0z0- Returns:
thisbuilder for use in a chained invocation
-
setX0y1z0
Initializes the value for thex0y1z0attribute.- Parameters:
x0y1z0- The value for x0y1z0- Returns:
thisbuilder for use in a chained invocation
-
setX1y1z0
Initializes the value for thex1y1z0attribute.- Parameters:
x1y1z0- The value for x1y1z0- Returns:
thisbuilder for use in a chained invocation
-
setX0y0z1
Initializes the value for thex0y0z1attribute.- Parameters:
x0y0z1- The value for x0y0z1- Returns:
thisbuilder for use in a chained invocation
-
setX1y0z1
Initializes the value for thex1y0z1attribute.- Parameters:
x1y0z1- The value for x1y0z1- Returns:
thisbuilder for use in a chained invocation
-
setX0y1z1
Initializes the value for thex0y1z1attribute.- Parameters:
x0y1z1- The value for x0y1z1- Returns:
thisbuilder for use in a chained invocation
-
setX1y1z1
Initializes the value for thex1y1z1attribute.- Parameters:
x1y1z1- The value for x1y1z1- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newVolumeXYZSplitI.- Returns:
- An immutable instance of VolumeXYZSplitI
- Throws:
IllegalStateException- if any required attributes are missing
-