public enum Eligibility extends Enum<Eligibility>
Enum Constant and Description |
---|
INELIGIBLE |
REQUIRE_NONE |
REQUIRE_ONE |
Modifier and Type | Method and Description |
---|---|
boolean |
isEligible() |
static Eligibility |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Eligibility[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Eligibility REQUIRE_NONE
public static final Eligibility REQUIRE_ONE
public static final Eligibility INELIGIBLE
public static Eligibility[] values()
for (Eligibility c : Eligibility.values()) System.out.println(c);
public static Eligibility 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 nullpublic boolean isEligible()