public enum AdvertisementDuration extends Enum<AdvertisementDuration>
| Modifier and Type | Method and Description |
|---|---|
static AdvertisementDuration |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AdvertisementDuration[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AdvertisementDuration WEEK
public static final AdvertisementDuration MONTH
public static final AdvertisementDuration YEAR
public static AdvertisementDuration[] values()
for (AdvertisementDuration c : AdvertisementDuration.values()) System.out.println(c);
public static AdvertisementDuration 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 nullCopyright © 2015–2016 eGovernments Foundation. All rights reserved.