Class PAreaXYSplitBI.Builder<S,T extends PAreaBIType<S>>
java.lang.Object
com.io7m.jregions.core.parameterized.areas.PAreaXYSplitBI.Builder<S,T>
- Enclosing class:
- PAreaXYSplitBI<S,T extends PAreaBIType<S>>
public static final class PAreaXYSplitBI.Builder<S,T extends PAreaBIType<S>>
extends java.lang.Object
Builds instances of type
PAreaXYSplitBI.
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.
-
Method Summary
Modifier and Type Method Description PAreaXYSplitBI<S,T>build()Builds a newPAreaXYSplitBI.PAreaXYSplitBI.Builder<S,T>from(PAreaXYSplitBIType<S,T> instance)Fill a builder with attribute values from the providedPAreaXYSplitBITypeinstance.PAreaXYSplitBI.Builder<S,T>setX0y0(T x0y0)Initializes the value for thex0y0attribute.PAreaXYSplitBI.Builder<S,T>setX0y1(T x0y1)Initializes the value for thex0y1attribute.PAreaXYSplitBI.Builder<S,T>setX1y0(T x1y0)Initializes the value for thex1y0attribute.PAreaXYSplitBI.Builder<S,T>setX1y1(T x1y1)Initializes the value for thex1y1attribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedPAreaXYSplitBITypeinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setX0y0
Initializes the value for thex0y0attribute.- Parameters:
x0y0- The value for x0y0- Returns:
thisbuilder for use in a chained invocation
-
setX1y0
Initializes the value for thex1y0attribute.- Parameters:
x1y0- The value for x1y0- Returns:
thisbuilder for use in a chained invocation
-
setX0y1
Initializes the value for thex0y1attribute.- Parameters:
x0y1- The value for x0y1- Returns:
thisbuilder for use in a chained invocation
-
setX1y1
Initializes the value for thex1y1attribute.- Parameters:
x1y1- The value for x1y1- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newPAreaXYSplitBI.- Returns:
- An immutable instance of PAreaXYSplitBI
- Throws:
java.lang.IllegalStateException- if any required attributes are missing
-