Class AreaSizeF.Builder
java.lang.Object
com.io7m.jregions.core.unparameterized.sizes.AreaSizeFType.Builder
com.io7m.jregions.core.unparameterized.sizes.AreaSizeF.Builder
- Enclosing class:
- AreaSizeF
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a newAreaSizeF
.final AreaSizeF.Builder
from
(AreaSizeFType instance) Fill a builder with attribute values from the providedcom.io7m.jregions.core.unparameterized.sizes.AreaSizeFType
instance.final AreaSizeF.Builder
from
(AreaSizeValuesFType instance) Fill a builder with attribute values from the providedcom.io7m.jregions.core.unparameterized.sizes.AreaSizeValuesFType
instance.final AreaSizeF.Builder
setSizeX
(float sizeX) Initializes the value for thesizeX
attribute.final AreaSizeF.Builder
setSizeY
(float sizeY) Initializes the value for thesizeY
attribute.Methods inherited from class com.io7m.jregions.core.unparameterized.sizes.AreaSizeFType.Builder
setHeight, setWidth
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.io7m.jregions.core.unparameterized.sizes.AreaSizeValuesFType
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.sizes.AreaSizeFType
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
setSizeX
Initializes the value for thesizeX
attribute.- Parameters:
sizeX
- The value for sizeX- Returns:
this
builder for use in a chained invocation
-
setSizeY
Initializes the value for thesizeY
attribute.- Parameters:
sizeY
- The value for sizeY- Returns:
this
builder for use in a chained invocation
-
build
Builds a newAreaSizeF
.- Returns:
- An immutable instance of AreaSizeF
- Throws:
IllegalStateException
- if any required attributes are missing
-