Class VolumeI.Builder
java.lang.Object
com.io7m.jregions.core.unparameterized.volumes.VolumeI.Builder
- Enclosing class:
- VolumeI
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newVolumeI.final VolumeI.Builderfrom(VolumeIType instance) Fill a builder with attribute values from the providedcom.io7m.jregions.core.unparameterized.volumes.VolumeITypeinstance.final VolumeI.Builderfrom(VolumeValuesIType instance) Fill a builder with attribute values from the providedcom.io7m.jregions.core.unparameterized.volumes.VolumeValuesITypeinstance.final VolumeI.BuildersetMaximumX(int maximumX) Initializes the value for themaximumXattribute.final VolumeI.BuildersetMaximumY(int maximumY) Initializes the value for themaximumYattribute.final VolumeI.BuildersetMaximumZ(int maximumZ) Initializes the value for themaximumZattribute.final VolumeI.BuildersetMinimumX(int minimumX) Initializes the value for theminimumXattribute.final VolumeI.BuildersetMinimumY(int minimumY) Initializes the value for theminimumYattribute.final VolumeI.BuildersetMinimumZ(int minimumZ) Initializes the value for theminimumZattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.io7m.jregions.core.unparameterized.volumes.VolumeITypeinstance.- 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.VolumeValuesITypeinstance.- 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 newVolumeI.- Returns:
- An immutable instance of VolumeI
- Throws:
IllegalStateException- if any required attributes are missing
-