public enum SamFlagField extends java.lang.Enum<SamFlagField>
Enum Constant and Description |
---|
DECIMAL |
HEXADECIMAL |
NONE |
OCTAL |
STRING |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
format(int flag)
Returns the string associated with this flag field.
|
static SamFlagField |
of(java.lang.String s)
Returns the type of flag field for this string.
|
int |
parse(java.lang.String flag)
Parses the flag.
|
static int |
parseDefault(java.lang.String flag)
Infers the format from the flag string and parses the flag.
|
protected abstract int |
parseWithoutValidation(java.lang.String flag)
Performs the actual parsing based on the radix.
|
static SamFlagField |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SamFlagField[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SamFlagField NONE
public static final SamFlagField DECIMAL
public static final SamFlagField HEXADECIMAL
public static final SamFlagField OCTAL
public static final SamFlagField STRING
public static SamFlagField[] values()
for (SamFlagField c : SamFlagField.values()) System.out.println(c);
public static SamFlagField 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 abstract java.lang.String format(int flag)
public final int parse(java.lang.String flag)
public static int parseDefault(java.lang.String flag)
protected abstract int parseWithoutValidation(java.lang.String flag)
public static SamFlagField of(java.lang.String s)