public static enum Votable.VoteValue extends Enum<Votable.VoteValue>
| Enum Constant and Description |
|---|
DOWN
Negative vote -
|
UP
Positive vote +
|
| Modifier and Type | Method and Description |
|---|---|
String |
toString() |
static Votable.VoteValue |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Votable.VoteValue[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Votable.VoteValue UP
public static final Votable.VoteValue DOWN
public static Votable.VoteValue[] values()
for (Votable.VoteValue c : Votable.VoteValue.values()) System.out.println(c);
public static Votable.VoteValue 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 String toString()
toString in class Enum<Votable.VoteValue>Copyright © 2016 Erudika. All rights reserved.