T - Data type to comparepublic class ReverseComparator<T> extends Object implements ISerializableComparator<T>
| Constructor and Description |
|---|
ReverseComparator(Comparator<T> aComparator) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(T aObj1,
T aObj2) |
static <U> ReverseComparator<U> |
create(Comparator<U> aComparator) |
Comparator<T> |
getOriginalComparator() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequalspublic ReverseComparator(@Nonnull Comparator<T> aComparator)
@Nonnull public Comparator<T> getOriginalComparator()
public int compare(T aObj1, T aObj2)
compare in interface Comparator<T>@Nonnull public static <U> ReverseComparator<U> create(@Nonnull Comparator<U> aComparator)
Copyright © 2014–2015 Philip Helger. All rights reserved.