public enum QuotaUnit extends Enum<QuotaUnit>
| Modifier and Type | Method and Description |
|---|---|
long |
toBytes(long size) |
static QuotaUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static QuotaUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final QuotaUnit KB
public static final QuotaUnit MB
public static final QuotaUnit GB
public static final QuotaUnit TB
public static QuotaUnit[] values()
for (QuotaUnit c : QuotaUnit.values()) System.out.println(c);
public static QuotaUnit 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(long size)