public enum Occurrence extends java.lang.Enum<Occurrence>
Enum Constant and Description |
---|
First
Indicates the first occurrence.
|
Fourth
Indicates the fourth occurrence.
|
Last
Indicates the last occurrence.
|
Second
Indicates the second occurrence.
|
Third
Indicates the third occurrence.
|
Modifier and Type | Method and Description |
---|---|
static Occurrence |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Occurrence[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Occurrence First
public static final Occurrence Second
public static final Occurrence Third
public static final Occurrence Fourth
public static final Occurrence Last
public static Occurrence[] values()
for (Occurrence c : Occurrence.values()) System.out.println(c);
public static Occurrence 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 null