public static enum Price.Type extends java.lang.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(java.lang.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(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullCopyright © 2025. All rights reserved.