public enum Precision extends Enum<Precision>
Modifier and Type | Method and Description |
---|---|
static Precision |
fromToken(String s)
Returns a
Precision instance given a lowercase token string. |
String |
toString() |
static Precision |
valueOf(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(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 static Precision fromToken(String s)
Precision
instance given a lowercase token string.
For example, given "lowp", this method will return
Precision.LOWP
.Copyright © 2020. All rights reserved.