| Modifier and Type | Field and Description |
|---|---|
private int |
direction |
| Modifier and Type | Method and Description |
|---|---|
private java.lang.Object |
getDirection() |
static VoteType |
lookup(java.lang.Integer direction) |
static VoteType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static VoteType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VoteType UPVOTE
public static final VoteType DOWNVOTE
public static VoteType[] values()
for (VoteType c : VoteType.values()) System.out.println(c);
public static VoteType 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 nullpublic static VoteType lookup(java.lang.Integer direction)
private java.lang.Object getDirection()