Class PVolumeD.Builder<S>
java.lang.Object
com.io7m.jregions.core.parameterized.volumes.PVolumeD.Builder<S>
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newPVolumeD.final PVolumeD.Builder<S>from(PVolumeDType<S> instance) Fill a builder with attribute values from the providedcom.io7m.jregions.core.parameterized.volumes.PVolumeDTypeinstance.final PVolumeD.Builder<S>from(VolumeValuesDType instance) Fill a builder with attribute values from the providedcom.io7m.jregions.core.unparameterized.volumes.VolumeValuesDTypeinstance.final PVolumeD.Builder<S>setMaximumX(double maximumX) Initializes the value for themaximumXattribute.final PVolumeD.Builder<S>setMaximumY(double maximumY) Initializes the value for themaximumYattribute.final PVolumeD.Builder<S>setMaximumZ(double maximumZ) Initializes the value for themaximumZattribute.final PVolumeD.Builder<S>setMinimumX(double minimumX) Initializes the value for theminimumXattribute.final PVolumeD.Builder<S>setMinimumY(double minimumY) Initializes the value for theminimumYattribute.final PVolumeD.Builder<S>setMinimumZ(double minimumZ) Initializes the value for theminimumZattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.io7m.jregions.core.parameterized.volumes.PVolumeDTypeinstance.- 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.VolumeValuesDTypeinstance.- 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 newPVolumeD.- Returns:
- An immutable instance of PVolumeD
- Throws:
IllegalStateException- if any required attributes are missing
-