Class PredictionMode.AltAndContextConfigEqualityComparator
java.lang.Object
org.antlr.v4.runtime.misc.AbstractEqualityComparator<ATNConfig>
org.antlr.v4.runtime.atn.PredictionMode.AltAndContextConfigEqualityComparator
- All Implemented Interfaces:
EqualityComparator<ATNConfig>
- Enclosing class:
PredictionMode
private static final class PredictionMode.AltAndContextConfigEqualityComparator
extends AbstractEqualityComparator<ATNConfig>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PredictionMode.AltAndContextConfigEqualityComparator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThis method tests if two objects are equal.intThe hash code is only a function of theATNState.stateNumberandATNConfig.context.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
AltAndContextConfigEqualityComparator
private AltAndContextConfigEqualityComparator()
-
-
Method Details
-
hashCode
The hash code is only a function of theATNState.stateNumberandATNConfig.context.- Parameters:
o- The object.- Returns:
- The hash code for
obj.
-
equals
Description copied from interface:EqualityComparatorThis method tests if two objects are equal.- Parameters:
a- The first object to compare.b- The second object to compare.- Returns:
trueifaequalsb, otherwisefalse.
-