Package de.adorsys.psd2.model
Enum AccountStatus
- java.lang.Object
-
- java.lang.Enum<AccountStatus>
-
- de.adorsys.psd2.model.AccountStatus
-
- All Implemented Interfaces:
Serializable,Comparable<AccountStatus>
public enum AccountStatus extends Enum<AccountStatus>
Account status. The value is one of the following: - \"enabled\": account is available - \"deleted\": account is terminated - \"blocked\": account is blocked e.g. for legal reasons If this field is not used, than the account is available in the sense of this specification.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AccountStatusfromValue(String text)StringtoString()static AccountStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static AccountStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ENABLED
public static final AccountStatus ENABLED
-
DELETED
public static final AccountStatus DELETED
-
BLOCKED
public static final AccountStatus BLOCKED
-
-
Method Detail
-
values
public static AccountStatus[] 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 (AccountStatus c : AccountStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AccountStatus 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
-
toString
public String toString()
- Overrides:
toStringin classEnum<AccountStatus>
-
fromValue
public static AccountStatus fromValue(String text)
-
-