public enum Statistic extends Enum<Statistic>
Modifier and Type | Method and Description |
---|---|
static List<Statistic> |
cachedValues()
Use this instead of values() because values() creates a new array each time.
|
String |
stat() |
String |
toString() |
static Statistic |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Statistic[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Statistic AVG
public static final Statistic MAX
public static final Statistic MIN
public static final Statistic ST_DEV
public static Statistic[] values()
for (Statistic c : Statistic.values()) System.out.println(c);
public static Statistic 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 stat()
public static List<Statistic> cachedValues()