Serializable
, Comparable<SamFlagField>
public enum SamFlagField extends Enum<SamFlagField>
Enum Constant | Description |
---|---|
DECIMAL |
|
HEXADECIMAL |
|
NONE |
|
OCTAL |
|
STRING |
Modifier and Type | Method | Description |
---|---|---|
abstract String |
format(int flag) |
Returns the string associated with this flag field.
|
static SamFlagField |
of(String s) |
Returns the type of flag field for this string.
|
int |
parse(String flag) |
Parses the flag.
|
static int |
parseDefault(String flag) |
Infers the format from the flag string and parses the flag.
|
protected abstract int |
parseWithoutValidation(String flag) |
Performs the actual parsing based on the radix.
|
static SamFlagField |
valueOf(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(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 abstract String format(int flag)
public final int parse(String flag)
public static int parseDefault(String flag)
protected abstract int parseWithoutValidation(String flag)
public static SamFlagField of(String s)