Package com.podio.rating
Enum RatingType
- java.lang.Object
-
- java.lang.Enum<RatingType>
-
- com.podio.rating.RatingType
-
- All Implemented Interfaces:
Serializable,Comparable<RatingType>
public enum RatingType extends Enum<RatingType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APPROVEDSignals that the user approves (0) or disapproves(1)FIVESTARA rating from 1-5 where 5 is the bestLIKESignals the user likes the item (1)RSVPIndicates that the user can attend (0), cannot attend (1) or can maybe attend (2)THUMBSSignals a thumbs up (0) or thumbs down (1)YESNOSignals the user says yes (0) or no (1)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RatingTypegetByName(String value)StringtoString()static RatingTypevalueOf(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.
-
-
-
Enum Constant Detail
-
APPROVED
public static final RatingType APPROVED
Signals that the user approves (0) or disapproves(1)
-
RSVP
public static final RatingType RSVP
Indicates that the user can attend (0), cannot attend (1) or can maybe attend (2)
-
FIVESTAR
public static final RatingType FIVESTAR
A rating from 1-5 where 5 is the best
-
YESNO
public static final RatingType YESNO
Signals the user says yes (0) or no (1)
-
THUMBS
public static final RatingType THUMBS
Signals a thumbs up (0) or thumbs down (1)
-
LIKE
public static final RatingType LIKE
Signals the user likes the item (1)
-
-
Method Detail
-
values
public static RatingType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RatingType c : RatingType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RatingType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
toString
public String toString()
- Overrides:
toStringin classEnum<RatingType>
-
getByName
public static RatingType getByName(String value)
-
-