Serializable, Comparable<BankAccountType>public enum BankAccountType extends Enum<BankAccountType>
| Modifier and Type | Method | Description |
|---|---|---|
static BankAccountType |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static BankAccountType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@SerializedName("savings")
public static final BankAccountType SAVINGS
@SerializedName("checking")
public static final BankAccountType CHECKING
public static BankAccountType[] values()
for (BankAccountType c : BankAccountType.values()) System.out.println(c);
public static BankAccountType 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 © 2018 The Apache Software Foundation. All rights reserved.