Enum PostTradeBankModel.ExpectedErrorEnum
- java.lang.Object
-
- java.lang.Enum<PostTradeBankModel.ExpectedErrorEnum>
-
- app.cybrid.cybrid_api_bank.client.model.PostTradeBankModel.ExpectedErrorEnum
-
- All Implemented Interfaces:
Serializable,Comparable<PostTradeBankModel.ExpectedErrorEnum>
- Enclosing class:
- PostTradeBankModel
public static enum PostTradeBankModel.ExpectedErrorEnum extends Enum<PostTradeBankModel.ExpectedErrorEnum>
The optional expected error to simulate trade failure.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXPIRED_QUOTEINVALID_QUOTE_GUIDNON_SUFFICIENT_FUNDS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PostTradeBankModel.ExpectedErrorEnumfromValue(String value)StringgetValue()StringtoString()static PostTradeBankModel.ExpectedErrorEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static PostTradeBankModel.ExpectedErrorEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INVALID_QUOTE_GUID
public static final PostTradeBankModel.ExpectedErrorEnum INVALID_QUOTE_GUID
-
EXPIRED_QUOTE
public static final PostTradeBankModel.ExpectedErrorEnum EXPIRED_QUOTE
-
NON_SUFFICIENT_FUNDS
public static final PostTradeBankModel.ExpectedErrorEnum NON_SUFFICIENT_FUNDS
-
-
Method Detail
-
values
public static PostTradeBankModel.ExpectedErrorEnum[] 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 (PostTradeBankModel.ExpectedErrorEnum c : PostTradeBankModel.ExpectedErrorEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PostTradeBankModel.ExpectedErrorEnum 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()
-
toString
public String toString()
- Overrides:
toStringin classEnum<PostTradeBankModel.ExpectedErrorEnum>
-
fromValue
public static PostTradeBankModel.ExpectedErrorEnum fromValue(String value)
-
-