Class PVolumeI.Builder<S>
java.lang.Object
com.io7m.jregions.core.parameterized.volumes.PVolumeI.Builder<S>
public static final class PVolumeI.Builder<S>
extends java.lang.Object
-
Method Summary
Modifier and Type Method Description PVolumeI<S>build()Builds a newPVolumeI.PVolumeI.Builder<S>from(PVolumeIType<S> instance)Fill a builder with attribute values from the providedcom.io7m.jregions.core.parameterized.volumes.PVolumeITypeinstance.PVolumeI.Builder<S>from(VolumeValuesIType instance)Fill a builder with attribute values from the providedcom.io7m.jregions.core.unparameterized.volumes.VolumeValuesITypeinstance.PVolumeI.Builder<S>setMaximumX(int maximumX)Initializes the value for themaximumXattribute.PVolumeI.Builder<S>setMaximumY(int maximumY)Initializes the value for themaximumYattribute.PVolumeI.Builder<S>setMaximumZ(int maximumZ)Initializes the value for themaximumZattribute.PVolumeI.Builder<S>setMinimumX(int minimumX)Initializes the value for theminimumXattribute.PVolumeI.Builder<S>setMinimumY(int minimumY)Initializes the value for theminimumYattribute.PVolumeI.Builder<S>setMinimumZ(int minimumZ)Initializes the value for theminimumZattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.io7m.jregions.core.unparameterized.volumes.VolumeValuesITypeinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.io7m.jregions.core.parameterized.volumes.PVolumeITypeinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setMinimumX
Initializes the value for theminimumXattribute.- Parameters:
minimumX- The value for minimumX- Returns:
thisbuilder for use in a chained invocation
-
setMaximumX
Initializes the value for themaximumXattribute.- Parameters:
maximumX- The value for maximumX- Returns:
thisbuilder for use in a chained invocation
-
setMinimumY
Initializes the value for theminimumYattribute.- Parameters:
minimumY- The value for minimumY- Returns:
thisbuilder for use in a chained invocation
-
setMaximumY
Initializes the value for themaximumYattribute.- Parameters:
maximumY- The value for maximumY- Returns:
thisbuilder for use in a chained invocation
-
setMinimumZ
Initializes the value for theminimumZattribute.- Parameters:
minimumZ- The value for minimumZ- Returns:
thisbuilder for use in a chained invocation
-
setMaximumZ
Initializes the value for themaximumZattribute.- Parameters:
maximumZ- The value for maximumZ- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newPVolumeI.- Returns:
- An immutable instance of PVolumeI
- Throws:
java.lang.IllegalStateException- if any required attributes are missing
-