public class OrderBy<T,Out extends Comparable<?>> extends Object implements Comparator<T>
| Modifier and Type | Class and Description |
|---|---|
static class |
OrderBy.Order |
| Constructor and Description |
|---|
OrderBy(Function1<T,Out> f1) |
OrderBy(OrderBy.Order order,
Function1<T,Out> f1) |
| Modifier and Type | Method and Description |
|---|---|
static <T,Out extends Comparable<Out>> |
ascending(Function1<T,Out> f1) |
int |
compare(T a,
T b) |
static int |
compareNull(Object o1,
Object o2) |
static <T,Out extends Comparable<Out>> |
descending(Function1<T,Out> f1) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic OrderBy(OrderBy.Order order, Function1<T,Out> f1)
public static <T,Out extends Comparable<Out>> OrderBy<T,Out> ascending(Function1<T,Out> f1)
public static <T,Out extends Comparable<Out>> OrderBy<T,Out> descending(Function1<T,Out> f1)
public int compare(T a, T b)
compare in interface Comparator<T>Copyright © 2021. All rights reserved.