public enum Unit extends Enum<Unit>
| 枚举常量和说明 |
|---|
BOOLEAN
0 or 1
|
BYTES
Size, counter, represented in bytes
|
COUNT
Number of items: size, counter...
|
ENUM
0..n, ordinal of an enum
|
MS
Timestamp or duration represented in ms
|
PERCENT
An integer in range 0..100
|
public static final Unit BYTES
public static final Unit MS
public static final Unit PERCENT
public static final Unit COUNT
public static final Unit BOOLEAN
public static final Unit ENUM
public static Unit[] values()
for (Unit c : Unit.values()) System.out.println(c);
public static Unit valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2024 The Apache Software Foundation. All rights reserved.