Package org.antlr.v4.runtime.atn
Class PredictionContext.IdentityEqualityComparator
java.lang.Object
org.antlr.v4.runtime.misc.AbstractEqualityComparator<PredictionContext>
org.antlr.v4.runtime.atn.PredictionContext.IdentityEqualityComparator
- All Implemented Interfaces:
EqualityComparator<PredictionContext>
- Enclosing class:
- PredictionContext
public static final class PredictionContext.IdentityEqualityComparator
extends AbstractEqualityComparator<PredictionContext>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThis method tests if two objects are equal.intThis method returns a hash code for the specified object.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
IdentityEqualityComparator
private IdentityEqualityComparator()
-
-
Method Details
-
hashCode
Description copied from interface:EqualityComparatorThis method returns a hash code for the specified object.- Parameters:
obj- 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.
-