public static enum FileSizeCalcer.FileSize extends Enum<FileSizeCalcer.FileSize>
Enum Constant and Description |
---|
B
Bytes.
|
GB
GigaByte.
|
KB
KiloByte.
|
MB
MegaByte.
|
PB
PetaByte.
|
TB
TeraByte.
|
Modifier and Type | Method and Description |
---|---|
int |
exponent()
Returns the CalcFactor exponent of this file size.
|
String |
getSiPrefix()
Returns the SI prefix corresponding to the size (base 10).
|
static FileSizeCalcer.FileSize |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FileSizeCalcer.FileSize[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileSizeCalcer.FileSize B
public static final FileSizeCalcer.FileSize KB
public static final FileSizeCalcer.FileSize MB
public static final FileSizeCalcer.FileSize GB
public static final FileSizeCalcer.FileSize TB
public static final FileSizeCalcer.FileSize PB
public static FileSizeCalcer.FileSize[] values()
for (FileSizeCalcer.FileSize c : FileSizeCalcer.FileSize.values()) System.out.println(c);
public static FileSizeCalcer.FileSize 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 int exponent()
public String getSiPrefix()
Copyright © 2016 SAPERION AG. All rights reserved.