Class PVolumeBI.Builder<S>
java.lang.Object
com.io7m.jregions.core.parameterized.volumes.PVolumeBI.Builder<S>
public static final class PVolumeBI.Builder<S>
extends java.lang.Object
-
Method Summary
Modifier and Type Method Description PVolumeBI<S>build()Builds a newPVolumeBI.PVolumeBI.Builder<S>from(PVolumeBIType<S> instance)Fill a builder with attribute values from the providedcom.io7m.jregions.core.parameterized.volumes.PVolumeBITypeinstance.PVolumeBI.Builder<S>from(VolumeValuesBIType instance)Fill a builder with attribute values from the providedcom.io7m.jregions.core.unparameterized.volumes.VolumeValuesBITypeinstance.PVolumeBI.Builder<S>setMaximumX(java.math.BigInteger maximumX)Initializes the value for themaximumXattribute.PVolumeBI.Builder<S>setMaximumY(java.math.BigInteger maximumY)Initializes the value for themaximumYattribute.PVolumeBI.Builder<S>setMaximumZ(java.math.BigInteger maximumZ)Initializes the value for themaximumZattribute.PVolumeBI.Builder<S>setMinimumX(java.math.BigInteger minimumX)Initializes the value for theminimumXattribute.PVolumeBI.Builder<S>setMinimumY(java.math.BigInteger minimumY)Initializes the value for theminimumYattribute.PVolumeBI.Builder<S>setMinimumZ(java.math.BigInteger minimumZ)Initializes the value for theminimumZattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.io7m.jregions.core.parameterized.volumes.PVolumeBITypeinstance.- 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.unparameterized.volumes.VolumeValuesBITypeinstance.- 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 newPVolumeBI.- Returns:
- An immutable instance of PVolumeBI
- Throws:
java.lang.IllegalStateException- if any required attributes are missing
-