Enum QuoteBankModel.SideEnum
- java.lang.Object
-
- java.lang.Enum<QuoteBankModel.SideEnum>
-
- app.cybrid.cybrid_api_bank.client.model.QuoteBankModel.SideEnum
-
- All Implemented Interfaces:
Serializable,Comparable<QuoteBankModel.SideEnum>
- Enclosing class:
- QuoteBankModel
public static enum QuoteBankModel.SideEnum extends Enum<QuoteBankModel.SideEnum>
The direction of the quote: either 'buy' or 'sell' for trade quotes.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BUYDEPOSITSELLWITHDRAWAL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static QuoteBankModel.SideEnumfromValue(String value)StringgetValue()StringtoString()static QuoteBankModel.SideEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static QuoteBankModel.SideEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BUY
public static final QuoteBankModel.SideEnum BUY
-
SELL
public static final QuoteBankModel.SideEnum SELL
-
DEPOSIT
public static final QuoteBankModel.SideEnum DEPOSIT
-
WITHDRAWAL
public static final QuoteBankModel.SideEnum WITHDRAWAL
-
-
Method Detail
-
values
public static QuoteBankModel.SideEnum[] 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 (QuoteBankModel.SideEnum c : QuoteBankModel.SideEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static QuoteBankModel.SideEnum 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<QuoteBankModel.SideEnum>
-
fromValue
public static QuoteBankModel.SideEnum fromValue(String value)
-
-