public enum Format extends java.lang.Enum<Format> implements IntegerEnum
Enum Constant and Description |
---|
__UNKNOWN_NATIVE_VALUE
The default enum value used when no other value matches the native value
|
BUFFERS
|
BYTES
bytes
|
DEFAULT
The default format of the pad/element.
|
PERCENT
Percentage of stream
|
TIME
Time in nanoseconds
|
UNDEFINED
Undefined format
|
Modifier and Type | Field and Description |
---|---|
int |
value |
Modifier and Type | Method and Description |
---|---|
int |
intValue()
Gets the integer value of the enum.
|
static Format |
valueOf(int format)
Returns the enum constant of this type with the specified integer value.
|
static Format |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Format[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Format UNDEFINED
public static final Format DEFAULT
public static final Format BYTES
public static final Format TIME
public static final Format BUFFERS
public static final Format PERCENT
public static final Format __UNKNOWN_NATIVE_VALUE
public static Format[] values()
for (Format c : Format.values()) System.out.println(c);
public static Format valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final int intValue()
intValue
in interface IntegerEnum
public static final Format valueOf(int format)
format
- integer value.