public static enum Deal.TypeEnum extends Enum<Deal.TypeEnum>
| Modifier and Type | Class and Description |
|---|---|
static class |
Deal.TypeEnum.Adapter |
| Modifier and Type | Method and Description |
|---|---|
static Deal.TypeEnum |
fromValue(String value) |
String |
getValue() |
String |
toString() |
static Deal.TypeEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Deal.TypeEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Deal.TypeEnum INCOME
public static final Deal.TypeEnum EXPENSE
public static Deal.TypeEnum[] values()
for (Deal.TypeEnum c : Deal.TypeEnum.values()) System.out.println(c);
public static Deal.TypeEnum 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 String toString()
toString in class Enum<Deal.TypeEnum>public static Deal.TypeEnum fromValue(String value)
Copyright © 2022. All rights reserved.