public static class Grid.UnboundedGridValidityChecker extends java.lang.Object implements Grid.ValidityChecker
UnboundedGridValidityChecker implements a strategy
for determining the validity of a location in an unbounded grid.| Constructor and Description |
|---|
UnboundedGridValidityChecker() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isValid(Location loc)
Verifies whether a location is valid.
|
public boolean isValid(Location loc)
isValid in interface Grid.ValidityCheckerloc - location to checktrue if loc is valid;
false otherwise