Package org.antlr.v4.runtime.atn
Class ATNConfigSet.ConfigEqualityComparator
- java.lang.Object
-
- org.antlr.v4.runtime.misc.AbstractEqualityComparator<ATNConfig>
-
- org.antlr.v4.runtime.atn.ATNConfigSet.ConfigEqualityComparator
-
- All Implemented Interfaces:
EqualityComparator<ATNConfig>
- Enclosing class:
- ATNConfigSet
public static final class ATNConfigSet.ConfigEqualityComparator extends AbstractEqualityComparator<ATNConfig>
-
-
Field Summary
Fields Modifier and Type Field Description static ATNConfigSet.ConfigEqualityComparator
INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(ATNConfig a, ATNConfig b)
This method tests if two objects are equal.int
hashCode(ATNConfig o)
This method returns a hash code for the specified object.
-
-
-
Field Detail
-
INSTANCE
public static final ATNConfigSet.ConfigEqualityComparator INSTANCE
-
-
Method Detail
-
hashCode
public int hashCode(ATNConfig o)
Description copied from interface:EqualityComparator
This method returns a hash code for the specified object.- Parameters:
o
- The object.- Returns:
- The hash code for
obj
.
-
equals
public boolean equals(ATNConfig a, ATNConfig b)
Description copied from interface:EqualityComparator
This method tests if two objects are equal.- Parameters:
a
- The first object to compare.b
- The second object to compare.- Returns:
true
ifa
equalsb
, otherwisefalse
.
-
-