public static enum Policy.RevenueContract extends Enum<Policy.RevenueContract>
| Enum Constant and Description |
|---|
FREE_TO_VIEW |
PAY_TO_BUY |
PAY_TO_RENT |
PRIVATE |
SUBSCRIPTION |
VOLUNTARY_DONATION |
| Modifier and Type | Method and Description |
|---|---|
static Policy.RevenueContract |
fromKey(String key) |
String |
key() |
static Policy.RevenueContract |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Policy.RevenueContract[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Policy.RevenueContract PAY_TO_BUY
public static final Policy.RevenueContract PAY_TO_RENT
public static final Policy.RevenueContract SUBSCRIPTION
public static final Policy.RevenueContract FREE_TO_VIEW
public static final Policy.RevenueContract VOLUNTARY_DONATION
public static final Policy.RevenueContract PRIVATE
public static Policy.RevenueContract[] values()
for (Policy.RevenueContract c : Policy.RevenueContract.values()) System.out.println(c);
public static Policy.RevenueContract 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 key()
public static Policy.RevenueContract fromKey(String key)
Copyright © 2014. All rights reserved.