abstract
int
|
compare(PackageItemInfo o1, PackageItemInfo o2)
Compares its two arguments for order.
|
static
<T, U>
Comparator<PackageItemInfo>
|
comparing(Function<? super T, ? extends U> keyExtractor, Comparator<? super U> keyComparator)
Accepts a function that extracts a sort key from a type T , and
returns a Comparator<T> that compares by that sort key using
the specified Comparator .
|
static
<T, U extends Comparable<? super U>>
Comparator<PackageItemInfo>
|
comparing(Function<? super T, ? extends U> keyExtractor)
Accepts a function that extracts a Comparable sort key from a type T , and returns a Comparator<T> that compares by that sort key.
|
static
<T>
Comparator<PackageItemInfo>
|
comparingDouble(ToDoubleFunction<? super T> keyExtractor)
Accepts a function that extracts a double sort key from a type
T , and returns a Comparator<T> that compares by that
sort key.
|
static
<T>
Comparator<PackageItemInfo>
|
comparingInt(ToIntFunction<? super T> keyExtractor)
Accepts a function that extracts an int sort key from a type
T , and returns a Comparator<T> that compares by that
sort key.
|
static
<T>
Comparator<PackageItemInfo>
|
comparingLong(ToLongFunction<? super T> keyExtractor)
Accepts a function that extracts a long sort key from a type
T , and returns a Comparator<T> that compares by that
sort key.
|
abstract
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this
comparator.
|
static
<T extends Comparable<? super T>>
Comparator<T>
|
naturalOrder()
Returns a comparator that compares Comparable objects in natural
order.
|
static
<T>
Comparator<PackageItemInfo>
|
nullsFirst(Comparator<? super T> comparator)
Returns a null-friendly comparator that considers null to be
less than non-null.
|
static
<T>
Comparator<PackageItemInfo>
|
nullsLast(Comparator<? super T> comparator)
Returns a null-friendly comparator that considers null to be
greater than non-null.
|
static
<T extends Comparable<? super T>>
Comparator<T>
|
reverseOrder()
Returns a comparator that imposes the reverse of the natural
ordering.
|
default
Comparator<PackageItemInfo>
|
reversed()
Returns a comparator that imposes the reverse ordering of this
comparator.
|
default
<U extends Comparable<? super U>>
Comparator<PackageItemInfo>
|
thenComparing(Function<? super T, ? extends U> keyExtractor)
Returns a lexicographic-order comparator with a function that
extracts a Comparable sort key.
|
default
<U>
Comparator<PackageItemInfo>
|
thenComparing(Function<? super T, ? extends U> keyExtractor, Comparator<? super U> keyComparator)
Returns a lexicographic-order comparator with a function that
extracts a key to be compared with the given Comparator .
|
default
Comparator<PackageItemInfo>
|
thenComparing(Comparator<? super T> other)
Returns a lexicographic-order comparator with another comparator.
|
default
Comparator<PackageItemInfo>
|
thenComparingDouble(ToDoubleFunction<? super T> keyExtractor)
Returns a lexicographic-order comparator with a function that
extracts a double sort key.
|
default
Comparator<PackageItemInfo>
|
thenComparingInt(ToIntFunction<? super T> keyExtractor)
Returns a lexicographic-order comparator with a function that
extracts a int sort key.
|
default
Comparator<PackageItemInfo>
|
thenComparingLong(ToLongFunction<? super T> keyExtractor)
Returns a lexicographic-order comparator with a function that
extracts a long sort key.
|