Modifier and Type | Method and Description |
---|---|
static Precision |
fromToken(java.lang.String s)
Returns a
Precision instance given a lowercase token string. |
java.lang.String |
toString() |
static Precision |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Precision[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Precision LOWP
public static final Precision MEDIUMP
public static final Precision HIGHP
public static Precision[] values()
for (Precision c : Precision.values()) System.out.println(c);
public static Precision 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 static Precision fromToken(java.lang.String s)
Precision
instance given a lowercase token string.
For example, given "lowp", this method will return
Precision.LOWP
.public java.lang.String toString()
toString
in class java.lang.Enum<Precision>