org.matheclipse.core.patternmatching
Class PatternComparator
- java.lang.Object
-
- org.matheclipse.core.patternmatching.PatternComparator
-
- All Implemented Interfaces:
- java.util.Comparator<IPatternObject>
public class PatternComparator extends java.lang.Object implements java.util.Comparator<IPatternObject>
Compares two pattern objects.
-
-
Field Summary
Fields Modifier and Type Field and Description static PatternComparatorCONSTThe onlyPatternComparatorinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intcompare(IPatternObject o1, IPatternObject o2)Compares two patterns.
-
-
-
Field Detail
-
CONST
public static PatternComparator CONST
The onlyPatternComparatorinstance.
-
-
Method Detail
-
compare
public int compare(IPatternObject o1, IPatternObject o2)
Compares two patterns. Two patterns are considered as equal, if there associated symbols are equal and notnull. If the associated symbols arenull, then the patternsSystem#identityHashCode()value is used to compare them.- Specified by:
comparein interfacejava.util.Comparator<IPatternObject>
-
-
DMelt 3.0 © DataMelt by jWork.ORG