public static final class PAreaSizeF.Builder<S> extends Object
PAreaSizeF.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
PAreaSizeF<S> |
build()
Builds a new
PAreaSizeF. |
PAreaSizeF.Builder<S> |
from(AreaSizeValuesFType instance)
Fill a builder with attribute values from the provided
com.io7m.jregions.core.unparameterized.sizes.AreaSizeValuesFType instance. |
PAreaSizeF.Builder<S> |
from(PAreaSizeFType<S> instance)
Fill a builder with attribute values from the provided
com.io7m.jregions.core.parameterized.sizes.PAreaSizeFType<S> instance. |
PAreaSizeF.Builder<S> |
setHeight(float height)
Initializes the value for the
height attribute. |
PAreaSizeF.Builder<S> |
setWidth(float width)
Initializes the value for the
width attribute. |
public final PAreaSizeF.Builder<S> from(PAreaSizeFType<S> instance)
com.io7m.jregions.core.parameterized.sizes.PAreaSizeFType<S> instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final PAreaSizeF.Builder<S> from(AreaSizeValuesFType instance)
com.io7m.jregions.core.unparameterized.sizes.AreaSizeValuesFType instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final PAreaSizeF.Builder<S> setWidth(float width)
width attribute.width - The value for widththis builder for use in a chained invocationpublic final PAreaSizeF.Builder<S> setHeight(float height)
height attribute.height - The value for heightthis builder for use in a chained invocationpublic PAreaSizeF<S> build()
PAreaSizeF.IllegalStateException - if any required attributes are missingCopyright © 2017 <code@io7m.com> http://io7m.com