public enum StorageUnit extends Enum<StorageUnit>
Modifier and Type | Method and Description |
---|---|
abstract double |
fromBytes(double value) |
abstract double |
getDefault(double value) |
abstract String |
getLongName() |
abstract String |
getShortName() |
abstract String |
getSuffixChar() |
abstract double |
toBytes(double value) |
abstract double |
toEBs(double value) |
abstract double |
toGBs(double value) |
abstract double |
toKBs(double value) |
abstract double |
toMBs(double value) |
abstract double |
toPBs(double value) |
String |
toString() |
abstract double |
toTBs(double value) |
static StorageUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StorageUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StorageUnit EB
public static final StorageUnit PB
public static final StorageUnit TB
public static final StorageUnit GB
public static final StorageUnit MB
public static final StorageUnit KB
public static final StorageUnit BYTES
public static StorageUnit[] values()
for (StorageUnit c : StorageUnit.values()) System.out.println(c);
public static StorageUnit 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 abstract double toBytes(double value)
public abstract double toKBs(double value)
public abstract double toMBs(double value)
public abstract double toGBs(double value)
public abstract double toTBs(double value)
public abstract double toPBs(double value)
public abstract double toEBs(double value)
public abstract String getLongName()
public abstract String getShortName()
public abstract String getSuffixChar()
public abstract double getDefault(double value)
public abstract double fromBytes(double value)
public String toString()
toString
in class Enum<StorageUnit>
Copyright © 2008–2021 Apache Software Foundation. All rights reserved.