cs195z.support
Enum ZCharacter
java.lang.Object
java.lang.Enum<ZCharacter>
cs195z.support.ZCharacter
- All Implemented Interfaces:
- Serializable, Comparable<ZCharacter>
public enum ZCharacter
- extends Enum<ZCharacter>
The characters relevant to our class.
This is a superset of what you need for phylogeny assignment,
however the goal is to make your code extensible.
Phylogeny Part I only uses these 3: WING, NO_WING, PARTIAL.
DO NOT make your code rely on this... but rather
retrieve the relevant characters from
characterIndexes.keySet()
...hint, hint...
- Author:
- apstewar
Method Summary |
static ZCharacter |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ZCharacter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
WING
public static final ZCharacter WING
NO_WING
public static final ZCharacter NO_WING
PARTIAL
public static final ZCharacter PARTIAL
A
public static final ZCharacter A
C
public static final ZCharacter C
G
public static final ZCharacter G
T
public static final ZCharacter T
U
public static final ZCharacter U
R
public static final ZCharacter R
N
public static final ZCharacter N
D
public static final ZCharacter D
E
public static final ZCharacter E
Q
public static final ZCharacter Q
H
public static final ZCharacter H
I
public static final ZCharacter I
L
public static final ZCharacter L
K
public static final ZCharacter K
M
public static final ZCharacter M
F
public static final ZCharacter F
P
public static final ZCharacter P
S
public static final ZCharacter S
W
public static final ZCharacter W
Y
public static final ZCharacter Y
V
public static final ZCharacter V
values
public static ZCharacter[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (ZCharacter c : ZCharacter.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ZCharacter valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null