@InterfaceAudience.Public public enum Order extends Enum<Order>
byte[]
. Default ordering is considered ASCENDING
. The order
of a byte[]
can be inverted, resulting in DESCENDING
order,
by replacing each byte with its 1's compliment.枚举常量和说明 |
---|
ASCENDING |
DESCENDING |
限定符和类型 | 方法和说明 |
---|---|
abstract byte |
apply(byte val)
Apply order to the byte
val . |
abstract void |
apply(byte[] val)
Apply order to the byte array
val . |
abstract void |
apply(byte[] val,
int offset,
int length)
Apply order to a range within the byte array
val . |
abstract int |
cmp(int cmp)
Returns the adjusted trichotomous value according to the ordering imposed by this
Order . |
static Order |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static Order[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final Order ASCENDING
public static final Order DESCENDING
public static Order[] values()
for (Order c : Order.values()) System.out.println(c);
public static Order valueOf(String name)
name
- 要返回的枚举常量的名称。IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量NullPointerException
- 如果参数为空值public abstract int cmp(int cmp)
Order
.public abstract byte apply(byte val)
val
.public abstract void apply(byte[] val)
val
.public abstract void apply(byte[] val, int offset, int length)
val
.Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.