public static enum Price.Type extends Enum<Price.Type>
rent, purchase, package or subscription.
If nothing is specified, then the media is free.| Enum Constant and Description |
|---|
PACKAGE |
PURCHASE |
RENT |
SUBSCRIPTION |
| Modifier and Type | Method and Description |
|---|---|
static Price.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Price.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Price.Type RENT
public static final Price.Type PURCHASE
public static final Price.Type PACKAGE
public static final Price.Type SUBSCRIPTION
public static Price.Type[] values()
for (Price.Type c : Price.Type.values()) System.out.println(c);
public static Price.Type 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 © 2021. All rights reserved.