Class VolumeF.Builder
java.lang.Object
com.io7m.jregions.core.unparameterized.volumes.VolumeF.Builder
- Enclosing class:
- VolumeF
public static final class VolumeF.Builder
extends java.lang.Object
-
Method Summary
Modifier and Type Method Description VolumeFbuild()Builds a newVolumeF.VolumeF.Builderfrom(VolumeFType instance)Fill a builder with attribute values from the providedcom.io7m.jregions.core.unparameterized.volumes.VolumeFTypeinstance.VolumeF.Builderfrom(VolumeValuesFType instance)Fill a builder with attribute values from the providedcom.io7m.jregions.core.unparameterized.volumes.VolumeValuesFTypeinstance.VolumeF.BuildersetMaximumX(float maximumX)Initializes the value for themaximumXattribute.VolumeF.BuildersetMaximumY(float maximumY)Initializes the value for themaximumYattribute.VolumeF.BuildersetMaximumZ(float maximumZ)Initializes the value for themaximumZattribute.VolumeF.BuildersetMinimumX(float minimumX)Initializes the value for theminimumXattribute.VolumeF.BuildersetMinimumY(float minimumY)Initializes the value for theminimumYattribute.VolumeF.BuildersetMinimumZ(float minimumZ)Initializes the value for theminimumZattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.io7m.jregions.core.unparameterized.volumes.VolumeFTypeinstance.- 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 newVolumeF.- Returns:
- An immutable instance of VolumeF
- Throws:
java.lang.IllegalStateException- if any required attributes are missing
-