Modul speiger.src.collections
Schnittstelle LongComparator
- Alle Superschnittstellen:
Comparator<Long>
- Alle bekannten Implementierungsklassen:
LongComparator.Reversed
Type-Specific Class for Comparator to reduce (un)boxing
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypSchnittstelleBeschreibungstatic classA Type Specific Reversed Comparator to reduce boxing/unboxing -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungintcompare(long o1, long o2) Type-Specific compare function to reduce (un)boxingdefault intVeraltet.Please use the corresponding type-specific function instead.static LongComparatorof(Comparator<Long> c) A Wrapper function to convert a Non-Type-Specific Comparator to a Type-Specific-Comparatordefault LongComparatorreversed()Von Schnittstelle geerbte Methoden java.util.Comparator
equals, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Methodendetails
-
compare
int compare(long o1, long o2) Type-Specific compare function to reduce (un)boxing- 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:
-
compare
Veraltet.Please use the corresponding type-specific function instead.This default implementation delegates to the corresponding type-specific function.
- Angegeben von:
comparein SchnittstelleComparator<Long>
-
of
A Wrapper function to convert a Non-Type-Specific Comparator to a Type-Specific-Comparator- Parameter:
c- comparator to convert- Gibt zurück:
- the wrapper of the comparator
- Löst aus:
NullPointerException- if the comparator is null
-
reversed
- Angegeben von:
reversedin SchnittstelleComparator<Long>
-