Class PAreaF.Builder<S>
java.lang.Object
com.io7m.jregions.core.parameterized.areas.PAreaF.Builder<S>
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newPAreaF.final PAreaF.Builder<S>from(PAreaFType<S> instance) Fill a builder with attribute values from the providedcom.io7m.jregions.core.parameterized.areas.PAreaFTypeinstance.final PAreaF.Builder<S>from(AreaValuesFType instance) Fill a builder with attribute values from the providedcom.io7m.jregions.core.unparameterized.areas.AreaValuesFTypeinstance.final PAreaF.Builder<S>setMaximumX(float maximumX) Initializes the value for themaximumXattribute.final PAreaF.Builder<S>setMaximumY(float maximumY) Initializes the value for themaximumYattribute.final PAreaF.Builder<S>setMinimumX(float minimumX) Initializes the value for theminimumXattribute.final PAreaF.Builder<S>setMinimumY(float minimumY) Initializes the value for theminimumYattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.io7m.jregions.core.unparameterized.areas.AreaValuesFTypeinstance.- 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.parameterized.areas.PAreaFTypeinstance.- 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
-
build
Builds a newPAreaF.- Returns:
- An immutable instance of PAreaF
- Throws:
IllegalStateException- if any required attributes are missing
-