public static enum Unit.Bytes extends Enum<Unit.Bytes>
| Enum Constant and Description |
|---|
BYTE |
EB |
EIB |
GB |
GIB |
KB |
KIB |
MB |
MIB |
PB |
PIB |
TB |
TIB |
YB |
YIB |
ZB |
ZIB |
| Modifier and Type | Method and Description |
|---|---|
long |
getBytes() |
static Unit.Bytes |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Unit.Bytes |
valueOfSuffix(String unitpart) |
static Unit.Bytes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Unit.Bytes BYTE
public static final Unit.Bytes KB
public static final Unit.Bytes MB
public static final Unit.Bytes GB
public static final Unit.Bytes TB
public static final Unit.Bytes PB
public static final Unit.Bytes EB
public static final Unit.Bytes ZB
public static final Unit.Bytes YB
public static final Unit.Bytes KIB
public static final Unit.Bytes MIB
public static final Unit.Bytes GIB
public static final Unit.Bytes TIB
public static final Unit.Bytes PIB
public static final Unit.Bytes EIB
public static final Unit.Bytes ZIB
public static final Unit.Bytes YIB
public static Unit.Bytes[] values()
for (Unit.Bytes c : Unit.Bytes.values()) System.out.println(c);
public static Unit.Bytes 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 static Unit.Bytes valueOfSuffix(String unitpart)
public long getBytes()
Copyright © 2017. All rights reserved.