Documentation of 'org.matheclipse.core.patternmatching.PatternComparator' Java class
PatternComparator
org.matheclipse.core.patternmatching

Class 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 PatternComparator CONST
      The only PatternComparator instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int compare(IPatternObject o1, IPatternObject o2)
      Compares two patterns.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Comparator

        comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • Field Detail

    • 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 not null. If the associated symbols are null, then the patterns System#identityHashCode() value is used to compare them.
        Specified by:
        compare in interface java.util.Comparator<IPatternObject>

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.