Package com.xero.models.accounting
Enum Account.BankAccountTypeEnum
- java.lang.Object
-
- java.lang.Enum<Account.BankAccountTypeEnum>
-
- com.xero.models.accounting.Account.BankAccountTypeEnum
-
- All Implemented Interfaces:
Serializable,Comparable<Account.BankAccountTypeEnum>
- Enclosing class:
- Account
public static enum Account.BankAccountTypeEnum extends Enum<Account.BankAccountTypeEnum>
For bank accounts only. See Bank Account types
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BANKBANKCREDITCARDCREDITCARDEMPTYEMPTYNONENONEPAYPALPAYPAL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Account.BankAccountTypeEnumfromValue(String value)fromValueStringgetValue()getValueStringtoString()toStringstatic Account.BankAccountTypeEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static Account.BankAccountTypeEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BANK
public static final Account.BankAccountTypeEnum BANK
BANK
-
CREDITCARD
public static final Account.BankAccountTypeEnum CREDITCARD
CREDITCARD
-
PAYPAL
public static final Account.BankAccountTypeEnum PAYPAL
PAYPAL
-
NONE
public static final Account.BankAccountTypeEnum NONE
NONE
-
EMPTY
public static final Account.BankAccountTypeEnum EMPTY
EMPTY
-
-
Method Detail
-
values
public static Account.BankAccountTypeEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Account.BankAccountTypeEnum c : Account.BankAccountTypeEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Account.BankAccountTypeEnum valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public String getValue()
getValue- Returns:
- String value
-
toString
public String toString()
toString- Overrides:
toStringin classEnum<Account.BankAccountTypeEnum>- Returns:
- String value
-
fromValue
public static Account.BankAccountTypeEnum fromValue(String value)
fromValue- Parameters:
value- String
-
-