public static enum Units.Storage extends Enum<Units.Storage>
Modifier and Type | Method and Description |
---|---|
String |
format(long number) |
static Units.Storage |
of(long number) |
static Units.Storage |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Units.Storage[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Units.Storage BYTE
public static final Units.Storage KILOBYTE
public static final Units.Storage MEGABYTE
public static final Units.Storage GIGABYTE
public static Units.Storage[] values()
for (Units.Storage c : Units.Storage.values()) System.out.println(c);
public static Units.Storage 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 Units.Storage of(long number)
public String format(long number)