Class AreaSizeL.Builder
java.lang.Object
com.io7m.jregions.core.unparameterized.sizes.AreaSizeLType.Builder
com.io7m.jregions.core.unparameterized.sizes.AreaSizeL.Builder
- Enclosing class:
- AreaSizeL
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newAreaSizeL.final AreaSizeL.Builderfrom(AreaSizeLType instance) Fill a builder with attribute values from the providedcom.io7m.jregions.core.unparameterized.sizes.AreaSizeLTypeinstance.final AreaSizeL.Builderfrom(AreaSizeValuesLType instance) Fill a builder with attribute values from the providedcom.io7m.jregions.core.unparameterized.sizes.AreaSizeValuesLTypeinstance.final AreaSizeL.BuildersetSizeX(long sizeX) Initializes the value for thesizeXattribute.final AreaSizeL.BuildersetSizeY(long sizeY) Initializes the value for thesizeYattribute.Methods inherited from class com.io7m.jregions.core.unparameterized.sizes.AreaSizeLType.Builder
setHeight, setWidth
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.io7m.jregions.core.unparameterized.sizes.AreaSizeLTypeinstance.- 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.sizes.AreaSizeValuesLTypeinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setSizeX
Initializes the value for thesizeXattribute.- Parameters:
sizeX- The value for sizeX- Returns:
thisbuilder for use in a chained invocation
-
setSizeY
Initializes the value for thesizeYattribute.- Parameters:
sizeY- The value for sizeY- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newAreaSizeL.- Returns:
- An immutable instance of AreaSizeL
- Throws:
IllegalStateException- if any required attributes are missing
-