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.Builder
from
(VolumeIType instance) Fill a builder with attribute values from the providedcom.io7m.jregions.core.unparameterized.volumes.VolumeIType
instance.final VolumeI.Builder
from
(VolumeValuesIType instance) Fill a builder with attribute values from the providedcom.io7m.jregions.core.unparameterized.volumes.VolumeValuesIType
instance.final VolumeI.Builder
setMaximumX
(int maximumX) Initializes the value for themaximumX
attribute.final VolumeI.Builder
setMaximumY
(int maximumY) Initializes the value for themaximumY
attribute.final VolumeI.Builder
setMaximumZ
(int maximumZ) Initializes the value for themaximumZ
attribute.final VolumeI.Builder
setMinimumX
(int minimumX) Initializes the value for theminimumX
attribute.final VolumeI.Builder
setMinimumY
(int minimumY) Initializes the value for theminimumY
attribute.final VolumeI.Builder
setMinimumZ
(int minimumZ) Initializes the value for theminimumZ
attribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.io7m.jregions.core.unparameterized.volumes.VolumeIType
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.io7m.jregions.core.unparameterized.volumes.VolumeValuesIType
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
setMinimumX
Initializes the value for theminimumX
attribute.- Parameters:
minimumX
- The value for minimumX- Returns:
this
builder for use in a chained invocation
-
setMaximumX
Initializes the value for themaximumX
attribute.- Parameters:
maximumX
- The value for maximumX- Returns:
this
builder for use in a chained invocation
-
setMinimumY
Initializes the value for theminimumY
attribute.- Parameters:
minimumY
- The value for minimumY- Returns:
this
builder for use in a chained invocation
-
setMaximumY
Initializes the value for themaximumY
attribute.- Parameters:
maximumY
- The value for maximumY- Returns:
this
builder for use in a chained invocation
-
setMinimumZ
Initializes the value for theminimumZ
attribute.- Parameters:
minimumZ
- The value for minimumZ- Returns:
this
builder for use in a chained invocation
-
setMaximumZ
Initializes the value for themaximumZ
attribute.- Parameters:
maximumZ
- The value for maximumZ- Returns:
this
builder for use in a chained invocation
-
build
Builds a newVolumeI
.- Returns:
- An immutable instance of VolumeI
- Throws:
IllegalStateException
- if any required attributes are missing
-