@Immutable public final class Position extends Object
| Constructor and Description |
|---|
Position(int position,
boolean terminal)
Create a new position.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
getPosition()
Return the position for this position.
|
int |
hashCode() |
boolean |
isTerminal()
Return true if this position is a terminal position.
|
String |
toString() |
static Position |
valueOf(String value)
Parse a position from the specified value.
|
public Position(int position,
boolean terminal)
position - position, must be at least zeroterminal - true if this position is a terminal positionCopyright © 2013–2020 dishevelled.org. All rights reserved.