Klasse LongComparator.Reversed

java.lang.Object
speiger.src.collections.longs.functions.LongComparator.Reversed
Alle implementierten Schnittstellen:
Comparator<Long>, LongComparator
Umschließende Schnittstelle:
LongComparator

public static class LongComparator.Reversed extends Object implements LongComparator
A Type Specific Reversed Comparator to reduce boxing/unboxing
  • Konstruktordetails

    • Reversed

      public Reversed(LongComparator original)
      default constructor
      Parameter:
      original - that is going to be reversed
  • Methodendetails

    • compare

      public int compare(long o1, long o2)
      Beschreibung aus Schnittstelle kopiert: LongComparator
      Type-Specific compare function to reduce (un)boxing
      Angegeben von:
      compare in Schnittstelle LongComparator
      Parameter:
      o1 - the first object to be compared.
      o2 - the second object to be compared.
      Gibt zurück:
      a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
      Siehe auch:
    • reversed

      public LongComparator reversed()
      Angegeben von:
      reversed in Schnittstelle Comparator<Long>
      Angegeben von:
      reversed in Schnittstelle LongComparator