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