Class LongComparators.OppositeComparator

java.lang.Object
it.unimi.dsi.fastutil.longs.LongComparators.OppositeComparator
All Implemented Interfaces:
LongComparator, Serializable, Comparator<Long>
Enclosing class:
LongComparators

protected static class LongComparators.OppositeComparator extends Object implements LongComparator, Serializable
See Also:
  • Constructor Details

  • Method Details

    • compare

      public final int compare(long a, long b)
      Description copied from interface: LongComparator
      Compares its two primitive-type arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
      Specified by:
      compare in interface LongComparator
      Returns:
      a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
      See Also:
    • reversed

      public final LongComparator reversed()
      Specified by:
      reversed in interface Comparator<Long>
      Specified by:
      reversed in interface LongComparator