public enum Occurrence extends Enum<Occurrence>
| Enum Constant and Description |
|---|
ONCE |
ONE_OR_MORE |
ZERO_OR_MORE |
ZERO_OR_ONE |
| Modifier and Type | Method and Description |
|---|---|
static Occurrence |
valueOf(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 ZERO_OR_MORE
public static final Occurrence ONE_OR_MORE
public static final Occurrence ZERO_OR_ONE
public static final Occurrence ONCE
public static Occurrence[] values()
for (Occurrence c : Occurrence.values()) System.out.println(c);
public static Occurrence valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.