com.citygrid.content.offers
Enum CGOffersType

java.lang.Object
  extended by java.lang.Enum<CGOffersType>
      extended by com.citygrid.content.offers.CGOffersType
All Implemented Interfaces:
Serializable, Comparable<CGOffersType>

public enum CGOffersType
extends Enum<CGOffersType>


Enum Constant Summary
Buy1Get1
           
DailyDeal
           
DollarsOff
           
Free
           
Gift
           
GroupBuy
           
Other
           
PercentOff
           
PrintableCoupon
           
Purchase
           
Unknown
           
 
Field Summary
private  int code
           
private static Map<String,CGOffersType> stringToEnum
           
private  String value
           
 
Method Summary
static CGOffersType fromString(String parsedType)
           
 String toString()
           
static CGOffersType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CGOffersType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Field Detail

code

private int code

value

private String value

stringToEnum

private static final Map<String,CGOffersType> stringToEnum
Method Detail

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.