fable.adt
Enum Mark
java.lang.Object
java.lang.Enum<Mark>
fable.adt.Mark
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Mark>
public enum Mark
- extends java.lang.Enum<Mark>
This class represents the mark of an article. By mark we mean that it is
marked as read or starred, etc.
- Author:
- Wonsik Kim
Method Summary |
static Mark |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Mark[] |
values()
Returns an array containing the constants of this enum type, in
the order they're declared. |
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
READ
public static final Mark READ
STARRED
public static final Mark STARRED
values
public static final Mark[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(Mark c : Mark.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static Mark valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name