public enum CharacterSymbolMeaning extends java.lang.Enum<CharacterSymbolMeaning>
Enum Constant and Description |
---|
CHARACTER_STATE
Indicates that a token is a representation of a character state (e.g.
|
GAP
Indicates that the string representation of a token is the gap character or token (e.g.
|
MATCH
Indicates that the string representation of a token is the match character or token (e.g.
|
MISSING
Indicates that the string representation of a token is the missing data character or token (e.g.
|
OTHER
Indicates that a token has some other meaning which is not enumerated by this class.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Character |
getDefaultSymbol()
Returns the symbol usually used to represent this meaning.
|
static CharacterSymbolMeaning |
meaningByDefaultSymbol(char c)
Returns the according meaning, if the specified character is one of ,
or .
|
static CharacterSymbolMeaning |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CharacterSymbolMeaning[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CharacterSymbolMeaning GAP
public static final CharacterSymbolMeaning MISSING
public static final CharacterSymbolMeaning MATCH
public static final CharacterSymbolMeaning CHARACTER_STATE
public static final CharacterSymbolMeaning OTHER
public static CharacterSymbolMeaning[] values()
for (CharacterSymbolMeaning c : CharacterSymbolMeaning.values()) System.out.println(c);
public static CharacterSymbolMeaning 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 java.lang.Character getDefaultSymbol()
public static CharacterSymbolMeaning meaningByDefaultSymbol(char c)
c
- the character to be convertednull
if the meaning could not be determined from the character