librarytest
Enum Specialization
java.lang.Object
java.lang.Enum<Specialization>
librarytest.Specialization
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Specialization>
public enum Specialization
- extends java.lang.Enum<Specialization>
Has possible values of REFERENCE, SPECIAL_COLLECTIONS, RESEARCH, DESK, MEDIA, GENERAL, OTHER
Method Summary |
static Specialization |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Specialization[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
REFERENCE
public static final Specialization REFERENCE
SPECIAL_COLLECTIONS
public static final Specialization SPECIAL_COLLECTIONS
RESEARCH
public static final Specialization RESEARCH
DESK
public static final Specialization DESK
MEDIA
public static final Specialization MEDIA
GENERAL
public static final Specialization GENERAL
OTHER
public static final Specialization OTHER
values
public static Specialization[] 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 (Specialization c : Specialization.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Specialization 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
java.lang.NullPointerException
- if the argument is null