public enum Confidence extends java.lang.Enum<Confidence>
Modifier and Type | Method and Description |
---|---|
static Confidence |
Create(int value)
Convert an integer to its corresponding Confidence.
|
int |
getValue()
Gets the integer value of the Confidence.
|
static Confidence |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Confidence[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Confidence None
public static final Confidence Low
public static final Confidence Normal
public static final Confidence High
public static Confidence[] values()
for (Confidence c : Confidence.values()) System.out.println(c);
public static Confidence 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 getValue()
public static Confidence Create(int value)
value
- an integer representation of Confidence.