AbstractEqualityComparator
, ATNConfigSet.ConfigEqualityComparator
, ObjectEqualityComparator
public interface EqualityComparator<T>
Object.equals(java.lang.Object)
(object equality) and the ==
operator
(reference equality). It can be used to provide algorithm-specific unordered
comparisons without requiring changes to the object itself.Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(T a,
T b) |
This method tests if two objects are equal.
|
int |
hashCode(T obj) |
This method returns a hash code for the specified object.
|
int hashCode(T obj)
obj
- The object.obj
.Copyright © 1992–2019 ANTLR. All rights reserved.