Class PAreaBI.Builder<S>
java.lang.Object
com.io7m.jregions.core.parameterized.areas.PAreaBI.Builder<S>
public static final class PAreaBI.Builder<S>
extends java.lang.Object
-
Method Summary
Modifier and Type Method Description PAreaBI<S>build()Builds a newPAreaBI.PAreaBI.Builder<S>from(PAreaBIType<S> instance)Fill a builder with attribute values from the providedcom.io7m.jregions.core.parameterized.areas.PAreaBITypeinstance.PAreaBI.Builder<S>from(AreaValuesBIType instance)Fill a builder with attribute values from the providedcom.io7m.jregions.core.unparameterized.areas.AreaValuesBITypeinstance.PAreaBI.Builder<S>setMaximumX(java.math.BigInteger maximumX)Initializes the value for themaximumXattribute.PAreaBI.Builder<S>setMaximumY(java.math.BigInteger maximumY)Initializes the value for themaximumYattribute.PAreaBI.Builder<S>setMinimumX(java.math.BigInteger minimumX)Initializes the value for theminimumXattribute.PAreaBI.Builder<S>setMinimumY(java.math.BigInteger minimumY)Initializes the value for theminimumYattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.io7m.jregions.core.parameterized.areas.PAreaBITypeinstance.- 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.areas.AreaValuesBITypeinstance.- 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 newPAreaBI.- Returns:
- An immutable instance of PAreaBI
- Throws:
java.lang.IllegalStateException- if any required attributes are missing
-