public static enum ByteSize.Unit extends Enum<ByteSize.Unit>
| Enum Constant and Description |
|---|
BYTES |
EXABYTES |
GIGABYTES |
KILOBYTES |
MEGABYTES |
PETABYTES |
TERABYTES |
| Modifier and Type | Method and Description |
|---|---|
long |
toBytes() |
static ByteSize.Unit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ByteSize.Unit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ByteSize.Unit BYTES
public static final ByteSize.Unit KILOBYTES
public static final ByteSize.Unit MEGABYTES
public static final ByteSize.Unit GIGABYTES
public static final ByteSize.Unit TERABYTES
public static final ByteSize.Unit PETABYTES
public static final ByteSize.Unit EXABYTES
public static ByteSize.Unit[] values()
for (ByteSize.Unit c : ByteSize.Unit.values()) System.out.println(c);
public static ByteSize.Unit 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 long toBytes()
Copyright © 2018. All rights reserved.