| 枚举常量和说明 |
|---|
BYTES
Bytes.
|
GIGABYTES
Gigabytes.
|
KILOBYTES
Kilobytes.
|
MEGABYTES
Megabytes.
|
TERABYTES
Terabytes.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static DataUnit |
fromSuffix(java.lang.String suffix)
Return the
DataUnit matching the specified suffix. |
static DataUnit |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static DataUnit[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final DataUnit BYTES
public static final DataUnit KILOBYTES
public static final DataUnit MEGABYTES
public static final DataUnit GIGABYTES
public static final DataUnit TERABYTES
public static DataUnit[] values()
for (DataUnit c : DataUnit.values()) System.out.println(c);
public static DataUnit valueOf(java.lang.String name)
name - 要返回的枚举常量的名称。java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException - 如果参数为空值public static DataUnit fromSuffix(java.lang.String suffix)
DataUnit matching the specified suffix.suffix - one of the standard suffixDataUnit matching the specified suffixjava.lang.IllegalArgumentException - if the suffix does not match any of this enum's constantsCopyright © 2019 TODAY. All rights reserved.