public enum StatisticUnit extends Enum<StatisticUnit>
Enum Constant and Description |
---|
ABSOLUTE_TIME |
BYTES |
COUNT |
MESSAGES |
Modifier and Type | Method and Description |
---|---|
String |
toString() |
static StatisticUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StatisticUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StatisticUnit COUNT
public static final StatisticUnit BYTES
public static final StatisticUnit MESSAGES
public static final StatisticUnit ABSOLUTE_TIME
public static StatisticUnit[] values()
for (StatisticUnit c : StatisticUnit.values()) System.out.println(c);
public static StatisticUnit 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 String toString()
toString
in class Enum<StatisticUnit>
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.