public static interface Grid.ValidityChecker
ValidityChecker
specifies a strategy for determining
the validity of a location in a grid. Known implementing classes
include BoundedGridValidityChecker
and
UnboundedGridValidityChecker
.Modifier and Type | Method and Description |
---|---|
boolean |
isValid(Location loc)
Verifies whether a location is valid.
|
boolean isValid(Location loc)
loc
- location to checktrue
if loc
is valid;
false
otherwise