Package org.antlr.v4.runtime.atn
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
Fields Modifier and Type Field Description static PredictionMode.AltAndContextConfigEqualityComparatorINSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description privateAltAndContextConfigEqualityComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(ATNConfig a, ATNConfig b)This method tests if two objects are equal.inthashCode(ATNConfig o)The hash code is only a function of theATNState.stateNumberandATNConfig.context.
-
-
-
Field Detail
-
INSTANCE
public static final PredictionMode.AltAndContextConfigEqualityComparator INSTANCE
-
-
Method Detail
-
hashCode
public int hashCode(ATNConfig o)
The hash code is only a function of theATNState.stateNumberandATNConfig.context.- Parameters:
o- The object.- Returns:
- The hash code for
obj.
-
equals
public boolean equals(ATNConfig a, ATNConfig b)
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.
-
-