public enum Vote extends Enum<Vote>
Enum Constant and Description |
---|
APPROVE
Represents an approval vote.
|
DEFER
Represents a deferred vote, implying that the vote will be approved later.
|
DENY
Represents a denial vote.
|
Modifier and Type | Method and Description |
---|---|
Vote |
tally(Vote vote) |
static Vote |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Vote[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Vote APPROVE
public static final Vote DENY
public static final Vote DEFER
public static Vote[] values()
for (Vote c : Vote.values()) System.out.println(c);
public static Vote 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 null