Package org.apache.commons.jxpath.util

# Class ReverseComparator

java.lang.Object
org.apache.commons.jxpath.util.ReverseComparator

All Implemented Interfaces:
  `Serializable`, `Comparator`

public final class ReverseComparator extends Object implements Comparator, Serializable
Reverse comparator.

See Also:
  - Serialized Form

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final Comparator`
  `INSTANCE`
  Singleton reverse comparator instance.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `compare(Object o1, Object o2)`

  ### 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

  `equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong`

- ## Field Details

  - ### INSTANCE

    public static final Comparator INSTANCE
    Singleton reverse comparator instance.

- ## Method Details

  - ### compare

    public int compare(Object o1, Object o2)
    Specified by:
      `compare` in interface `Comparator`