Enum TradeBankModel.SideEnum
- java.lang.Object
-
- java.lang.Enum<TradeBankModel.SideEnum>
-
- app.cybrid.cybrid_api_bank.client.model.TradeBankModel.SideEnum
-
- All Implemented Interfaces:
Serializable,Comparable<TradeBankModel.SideEnum>
- Enclosing class:
- TradeBankModel
public static enum TradeBankModel.SideEnum extends Enum<TradeBankModel.SideEnum>
The direction of the quote: either 'buy' or 'sell'.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TradeBankModel.SideEnumfromValue(String value)StringgetValue()StringtoString()static TradeBankModel.SideEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static TradeBankModel.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 TradeBankModel.SideEnum BUY
-
SELL
public static final TradeBankModel.SideEnum SELL
-
-
Method Detail
-
values
public static TradeBankModel.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 (TradeBankModel.SideEnum c : TradeBankModel.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 TradeBankModel.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<TradeBankModel.SideEnum>
-
fromValue
public static TradeBankModel.SideEnum fromValue(String value)
-
-