private static final class PredictionMode.AltAndContextConfigEqualityComparator extends AbstractEqualityComparator<ATNConfig>
| Modifier and Type | Field and Description |
|---|---|
static PredictionMode.AltAndContextConfigEqualityComparator |
INSTANCE |
| Modifier | Constructor and Description |
|---|---|
private |
AltAndContextConfigEqualityComparator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(ATNConfig a,
ATNConfig b)
This method tests if two objects are equal.
|
int |
hashCode(ATNConfig o)
The hash code is only a function of the
ATNState.stateNumber
and ATNConfig.context. |
public static final PredictionMode.AltAndContextConfigEqualityComparator INSTANCE
private AltAndContextConfigEqualityComparator()
public int hashCode(ATNConfig o)
ATNState.stateNumber
and ATNConfig.context.o - The object.obj.public boolean equals(ATNConfig a, ATNConfig b)
EqualityComparatora - The first object to compare.b - The second object to compare.true if a equals b, otherwise false.