public enum Order extends Enum<Order> implements Comparator<Object>
Comparator
instances for ordering traversers.Enum Constant and Description |
---|
decr
Order in descending fashion.
|
incr
Order in ascending fashion
|
keyDecr
Deprecated.
As of release 3.1.1-incubating, replaced by
Column.keys . |
keyIncr
Deprecated.
As of release 3.1.1-incubating, replaced by
Column.keys . |
shuffle
Order in a random fashion.
|
valueDecr
Deprecated.
As of release 3.1.1-incubating, replaced by
Column.values . |
valueIncr
Deprecated.
As of release 3.1.1-incubating, replaced by
Column.values . |
Modifier and Type | Method and Description |
---|---|
abstract int |
compare(Object first,
Object second) |
abstract Order |
reversed()
Produce the opposite representation of the current
Order enum. |
static Order |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Order[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public static final Order incr
public static final Order decr
@Deprecated public static final Order keyIncr
Column.keys
.@Deprecated public static final Order valueIncr
Column.values
.@Deprecated public static final Order keyDecr
Column.keys
.@Deprecated public static final Order valueDecr
Column.values
.public static final Order shuffle
public static Order[] values()
for (Order c : Order.values()) System.out.println(c);
public static Order valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract int compare(Object first, Object second)
compare
in interface Comparator<Object>
public abstract Order reversed()
Order
enum.reversed
in interface Comparator<Object>
Copyright © 2013–2018 Apache Software Foundation. All rights reserved.