public class PatternComparator extends java.lang.Object implements java.util.Comparator<IPatternObject>
Modifier and Type | Field and Description |
---|---|
static PatternComparator |
CONST
The only
PatternComparator instance. |
Modifier and Type | Method and Description |
---|---|
int |
compare(IPatternObject o1,
IPatternObject o2)
Compares two patterns.
|
public static PatternComparator CONST
PatternComparator
instance.public int compare(IPatternObject o1, IPatternObject o2)
null
. If the associated
symbols are null
, then the patterns
System#identityHashCode()
value is used to compare them.compare
in interface java.util.Comparator<IPatternObject>