public enum OperationEnum extends Enum<OperationEnum>
Modifier and Type | Method and Description |
---|---|
static OperationEnum |
fromValue(String value) |
static List<OperationEnum> |
getAll() |
String |
getValue() |
static OperationEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OperationEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OperationEnum PLACE
public static final OperationEnum PAY
public static final OperationEnum CLOSE
public static OperationEnum[] values()
for (OperationEnum c : OperationEnum.values()) System.out.println(c);
public static OperationEnum 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 getValue()
public static OperationEnum fromValue(String value)
public static List<OperationEnum> getAll()
Copyright © 2018. All rights reserved.