public enum Plan extends Enum<Plan>
| Enum Constant and Description |
|---|
ENTERPRISE
Enterprise plan.
|
FREE
Free plan.
|
LITE
Lite plan.
|
PREMIUM
Premium plan.
|
| Modifier and Type | Method and Description |
|---|---|
static Plan |
getByValue(short value)
Find an instance of this enum by a value.
|
short |
getValue()
Get the integer representation of this enum instance.
|
static Plan |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Plan[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Plan FREE
public static final Plan LITE
public static final Plan PREMIUM
public static final Plan ENTERPRISE
public static Plan[] values()
for (Plan c : Plan.values()) System.out.println(c);
public static Plan 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 short getValue()
public static Plan getByValue(short value)
value - The integer representation of the instance to find.null if not found.Copyright © 2017. All rights reserved.