public class PairSourceToReached<L> extends Object
Such a pair is used in the ValidationByAutomaton
to store the
locations from which we started reading a word and the locations reached
after reading that word.
See ValidationState
.
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static <L> Set<PairSourceToReached<L>> |
getIdentityPairs(Collection<L> locations) |
L |
getReachedLocation() |
L |
getSourceLocation() |
int |
hashCode() |
static <L> PairSourceToReached<L> |
of(L sourceLocation,
L reachedLocation) |
String |
toString() |
PairSourceToReached<L> |
transitionToReached(L reachedLocation)
Creates a new pair with the current source location, and the new reached
location.
|
public L getSourceLocation()
public L getReachedLocation()
public PairSourceToReached<L> transitionToReached(L reachedLocation)
reachedLocation
- The newly reached locationpublic static <L> PairSourceToReached<L> of(L sourceLocation, L reachedLocation)
public static <L> Set<PairSourceToReached<L>> getIdentityPairs(Collection<L> locations)
Copyright © 2022. All rights reserved.