public static enum QualityCode.Level extends java.lang.Enum<QualityCode.Level>
Modifier and Type | Method and Description |
---|---|
int |
code(int userCode) |
static QualityCode.Level |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static QualityCode.Level[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final QualityCode.Level Good
public static final QualityCode.Level Uncertain
public static final QualityCode.Level Bad
public static final QualityCode.Level Error
public static QualityCode.Level[] values()
for (QualityCode.Level c : QualityCode.Level.values()) System.out.println(c);
public static QualityCode.Level 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 int code(int userCode)
userCode
- the user code to turn into a quality code. Only the lover 16 bits will be used