public interface GridDimension extends GridHeightAccessor, GridWidthAccessor
GridDimension
property.Modifier and Type | Interface and Description |
---|---|
static interface |
GridDimension.GridDimensionBuilder<B extends GridDimension.GridDimensionBuilder<B>>
The Interface GridDimensionBuilder.
|
static interface |
GridDimension.GridDimensionMutator
The Interface GridDimensionMutator.
|
static interface |
GridDimension.GridDimensionProperty
The Interface GridDimensionProperty.
|
static interface |
GridDimension.GridDimensionPropertyBuilder
The Interface GridDimensionPropertyBuilder.
|
GridHeightAccessor.GridHeightBuilder<B extends GridHeightAccessor.GridHeightBuilder<B>>, GridHeightAccessor.GridHeightMutator, GridHeightAccessor.GridHeightProperty
GridWidthAccessor.GridWidthBuilder<B extends GridWidthAccessor.GridWidthBuilder<B>>, GridWidthAccessor.GridWidthMutator, GridWidthAccessor.GridWidthProperty
Modifier and Type | Method and Description |
---|---|
static boolean |
equals(GridDimension aGridDimensionA,
GridDimension aGridDimensionB)
Equals.
|
default boolean |
isInBounds(int aPositionX,
int aPositionY)
Tests whether the given position is inside of the bounds of the grid.
|
default boolean |
isInBounds(Position aPosition)
Tests whether the given position is inside of the bounds of the grid.
|
default boolean |
isInHeight(int aPositionY)
Tests whether the given y-position is inside of the bounds of the grid's
height.
|
default boolean |
isInWidth(int aPositionX)
Tests whether the given x-position is inside of the bounds of the grid's
width.
|
getGridHeight
getGridWidth
default boolean isInBounds(Position aPosition)
aPosition
- The position for which to determine if it is in bounds.default boolean isInBounds(int aPositionX, int aPositionY)
aPositionX
- The x-position for which to determine if it is in
bounds regarding the grid width.aPositionY
- The y-position for which to determine if it is in
bounds regarding the grid height.default boolean isInWidth(int aPositionX)
aPositionX
- The x-position for which to determine if it is in
bounds regarding the grid width.default boolean isInHeight(int aPositionY)
aPositionY
- The y-position for which to determine if it is in
bounds regarding the grid height.static boolean equals(GridDimension aGridDimensionA, GridDimension aGridDimensionB)
aGridDimensionA
- the grid dimension AaGridDimensionB
- the grid dimension BCopyright © 2018. All rights reserved.