public enum DataSizeUnit extends Enum<DataSizeUnit>
| Enum Constant and Description |
|---|
BYTES
The byte unit.
|
GIGABYTES
The Gigabyte unit, i.e.
|
KILOBYTES
The kilobyte unit, i.e.
|
MEGABYTES
The Megabyte unit, i.e.
|
| Modifier and Type | Field and Description |
|---|---|
static DataSizeUnit |
B
Alias for
BYTES. |
static DataSizeUnit |
GB
Alias for
GIGABYTES |
static DataSizeUnit |
kB
Alias for
KILOBYTES. |
static DataSizeUnit |
MB
Alias for
MEGABYTES |
| Modifier and Type | Method and Description |
|---|---|
String |
toString() |
static DataSizeUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DataSizeUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataSizeUnit BYTES
public static final DataSizeUnit KILOBYTES
BYTES.public static final DataSizeUnit MEGABYTES
KILOBYTES, i.e. 1 048 576 bytes.public static final DataSizeUnit GIGABYTES
MEGABYTES, i.e. 1 048 576 kilobytes.public static final DataSizeUnit B
BYTES.public static final DataSizeUnit kB
KILOBYTES.public static final DataSizeUnit MB
MEGABYTESpublic static final DataSizeUnit GB
GIGABYTESpublic static DataSizeUnit[] values()
for (DataSizeUnit c : DataSizeUnit.values()) System.out.println(c);
public static DataSizeUnit 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 String toString()
toString in class Enum<DataSizeUnit>Copyright © 2018 Digipost. All rights reserved.