|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<BytesDisplay>
org.eclipse.mat.query.BytesDisplay
public enum BytesDisplay
This enumeration specifies how to display a number of bytes. It can be configured using -Dbytes_display=(bytes|kilobytes|megabytes|gigabytes|smart) or through the Eclipse preferences dialog.
Enum Constant Summary | |
---|---|
Bytes
Units of bytes (8 bits). |
|
Gigabytes
Units of gigabytes (1,073,741,824 bytes). |
|
Kilobytes
Units of kilobytes (1,024 bytes). |
|
Megabytes
Unites of megabytes (1,048,576 bytes). |
|
Smart
If the value is a gigabyte or more, display in gigabytes; similarly for megabytes and kilobytes; otherwise, display in bytes. |
Field Summary | |
---|---|
static BytesDisplay |
DEFAULT
Default bytes display format. |
static String |
PROPERTY_NAME
System property name to specify a bytes display. |
Method Summary | |
---|---|
static BytesDisplay |
getCurrentValue()
Return the currently selected preference from the system properties. |
static BytesDisplay |
parse(String value)
Given a stored preference value, return the enumeration value, or otherwise the default. |
static void |
setCurrentValue(BytesDisplay val)
Uses system properties to set the current value. |
static BytesDisplay |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static BytesDisplay[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final BytesDisplay Bytes
public static final BytesDisplay Kilobytes
public static final BytesDisplay Megabytes
public static final BytesDisplay Gigabytes
public static final BytesDisplay Smart
Field Detail |
---|
public static final BytesDisplay DEFAULT
public static final String PROPERTY_NAME
Method Detail |
---|
public static BytesDisplay[] values()
for (BytesDisplay c : BytesDisplay.values()) System.out.println(c);
public static BytesDisplay valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static BytesDisplay parse(String value)
value
- The preference value.
public static BytesDisplay getCurrentValue()
public static void setCurrentValue(BytesDisplay val)
newStrictness
- The new value.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |