Interface PAreaSizeBDType<S>
- Type Parameters:
S- A phantom type parameter indicating the coordinate space of the area
- All Superinterfaces:
AreaSizeValuesBDType
- All Known Implementing Classes:
PAreaSizeBD
@Immutable public interface PAreaSizeBDType<S> extends AreaSizeValuesBDType
The size of an area with
BigDecimal coordinates.-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPAreaSizeBDType.Builder<S>A builder for size values. -
Method Summary
Modifier and Type Method Description default voidcheckPreconditions()Check preconditions for the type.java.math.BigDecimalsizeX()java.math.BigDecimalsizeY()Methods inherited from interface com.io7m.jregions.core.unparameterized.sizes.AreaSizeValuesBDType
height, width
-
Method Details
-
sizeX
@Parameter(order=0) java.math.BigDecimal sizeX()- Specified by:
sizeXin interfaceAreaSizeValuesBDType- Returns:
- The size of the area on the X axis
-
sizeY
@Parameter(order=1) java.math.BigDecimal sizeY()- Specified by:
sizeYin interfaceAreaSizeValuesBDType- Returns:
- The size of the area on the Y axis
-
checkPreconditions
@Check default void checkPreconditions()Check preconditions for the type.
-