public enum RatingType extends Enum<RatingType>
| Enum Constant and Description |
|---|
APPROVED
Signals that the user approves (0) or disapproves(1)
|
FIVESTAR
A rating from 1-5 where 5 is the best
|
LIKE
Signals the user likes the item (1)
|
RSVP
Indicates that the user can attend (0), cannot attend (1) or can maybe
attend (2)
|
THUMBS
Signals a thumbs up (0) or thumbs down (1)
|
YESNO
Signals the user says yes (0) or no (1)
|
| Modifier and Type | Method and Description |
|---|---|
static RatingType |
getByName(String value) |
String |
toString() |
static RatingType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RatingType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RatingType APPROVED
public static final RatingType RSVP
public static final RatingType FIVESTAR
public static final RatingType YESNO
public static final RatingType THUMBS
public static final RatingType LIKE
public static RatingType[] values()
for (RatingType c : RatingType.values()) System.out.println(c);
public static RatingType 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<RatingType>public static RatingType getByName(String value)
Copyright © 2014. All Rights Reserved.