org.eclipse.viatra.query.tooling.ui.queryexplorer.content.matcher

## Class MatchComparator

- java.lang.Object
- - org.eclipse.viatra.query.tooling.ui.queryexplorer.content.matcher.MatchComparator

- All Implemented Interfaces:
    java.util.Comparator<IPatternMatch>

      public class MatchComparator
      extends java.lang.Object
      implements java.util.Comparator<IPatternMatch>

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MatchComparator(ViatraQueryMatcher<IPatternMatch> matcher, java.lang.String clazz, java.lang.String attribute, boolean ascending)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compare(IPatternMatch match1, IPatternMatch match2)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, 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`

- - ### Constructor Detail

    - #### MatchComparator

          public MatchComparator(ViatraQueryMatcher<IPatternMatch> matcher,
                                 java.lang.String clazz,
                                 java.lang.String attribute,
                                 boolean ascending)

  - ### Method Detail

    - #### compare

          public int compare(IPatternMatch match1,
                             IPatternMatch match2)

      Specified by:
        `compare` in interface `java.util.Comparator<IPatternMatch>`