com.citygrid.content.offers
Enum CGOffersType
java.lang.Object
java.lang.Enum<CGOffersType>
com.citygrid.content.offers.CGOffersType
- All Implemented Interfaces:
- Serializable, Comparable<CGOffersType>
public enum CGOffersType
- extends Enum<CGOffersType>
Unknown
public static final CGOffersType Unknown
PercentOff
public static final CGOffersType PercentOff
Free
public static final CGOffersType Free
DollarsOff
public static final CGOffersType DollarsOff
Gift
public static final CGOffersType Gift
Buy1Get1
public static final CGOffersType Buy1Get1
Purchase
public static final CGOffersType Purchase
Other
public static final CGOffersType Other
PrintableCoupon
public static final CGOffersType PrintableCoupon
GroupBuy
public static final CGOffersType GroupBuy
DailyDeal
public static final CGOffersType DailyDeal
code
private int code
value
private String value
stringToEnum
private static final Map<String,CGOffersType> stringToEnum
values
public static CGOffersType[] 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 (CGOffersType c : CGOffersType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static CGOffersType 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 name
NullPointerException
- if the argument is null
toString
public String toString()
- Overrides:
toString
in class Enum<CGOffersType>
fromString
public static CGOffersType fromString(String parsedType)
Copyright © 2011. All Rights Reserved.