org.hibernate.test.annotations.dataTypes
Enum Grade
java.lang.Object
java.lang.Enum<Grade>
org.hibernate.test.annotations.dataTypes.Grade
- All Implemented Interfaces:
- Serializable, Comparable<Grade>
public enum Grade
- extends Enum<Grade>
TODO : javadoc
Enum Constant Summary |
A
|
B
|
C
|
D
|
F
|
Method Summary |
static Grade |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Grade[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
A
public static final Grade A
B
public static final Grade B
C
public static final Grade C
D
public static final Grade D
F
public static final Grade F
values
public static Grade[] 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 (Grade c : Grade.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Grade 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
Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.