Enum ProfileDiagnostic.MemoryUnit
- java.lang.Object
-
- java.lang.Enum<ProfileDiagnostic.MemoryUnit>
-
- org.eclipse.epsilon.common.util.profiling.ProfileDiagnostic.MemoryUnit
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ProfileDiagnostic.MemoryUnit>
- Enclosing class:
- ProfileDiagnostic
public static enum ProfileDiagnostic.MemoryUnit extends java.lang.Enum<ProfileDiagnostic.MemoryUnit>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static double
convertFromBytes(ProfileDiagnostic.MemoryUnit to, long amount)
static double
convertUnits(ProfileDiagnostic.MemoryUnit from, ProfileDiagnostic.MemoryUnit to, double amount)
static ProfileDiagnostic.MemoryUnit
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ProfileDiagnostic.MemoryUnit[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BYTES
public static final ProfileDiagnostic.MemoryUnit BYTES
-
KB
public static final ProfileDiagnostic.MemoryUnit KB
-
MB
public static final ProfileDiagnostic.MemoryUnit MB
-
GB
public static final ProfileDiagnostic.MemoryUnit GB
-
TB
public static final ProfileDiagnostic.MemoryUnit TB
-
PB
public static final ProfileDiagnostic.MemoryUnit PB
-
EB
public static final ProfileDiagnostic.MemoryUnit EB
-
ZB
public static final ProfileDiagnostic.MemoryUnit ZB
-
YB
public static final ProfileDiagnostic.MemoryUnit YB
-
-
Method Detail
-
values
public static ProfileDiagnostic.MemoryUnit[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ProfileDiagnostic.MemoryUnit c : ProfileDiagnostic.MemoryUnit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProfileDiagnostic.MemoryUnit valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
convertFromBytes
public static double convertFromBytes(ProfileDiagnostic.MemoryUnit to, long amount)
-
convertUnits
public static double convertUnits(ProfileDiagnostic.MemoryUnit from, ProfileDiagnostic.MemoryUnit to, double amount)
-
-