public enum Memory extends Enum<Memory>
Enum Constant and Description |
---|
Byte
Enum for byte.
|
KibiByte
Enum for KibiByte.
|
Mebibyte
Enum for MebiByte.
|
Modifier and Type | Method and Description |
---|---|
double |
getNumberOfBytes()
Getting the number of bytes.
|
String |
getUnit()
Getting the unit.
|
String |
getUnitDescription()
Getting the full unitname.
|
static Memory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Memory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Memory Byte
public static final Memory KibiByte
public static final Memory Mebibyte
public static Memory[] values()
for (Memory c : Memory.values()) System.out.println(c);
public static Memory 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 double getNumberOfBytes()
public String getUnit()
public String getUnitDescription()
Copyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.