Enum MetatraderDeal.DealEntryType
- java.lang.Object
-
- java.lang.Enum<MetatraderDeal.DealEntryType>
-
- cloud.metaapi.sdk.clients.meta_api.models.MetatraderDeal.DealEntryType
-
- All Implemented Interfaces:
Serializable,Comparable<MetatraderDeal.DealEntryType>
- Enclosing class:
- MetatraderDeal
public static enum MetatraderDeal.DealEntryType extends Enum<MetatraderDeal.DealEntryType>
Deal entry type. See https://www.mql5.com/en/docs/constants/tradingconstants/dealproperties#enum_deal_entry
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEAL_ENTRY_INDEAL_ENTRY_INOUTDEAL_ENTRY_OUTDEAL_ENTRY_OUT_BY
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MetatraderDeal.DealEntryTypevalueOf(String name)Returns the enum constant of this type with the specified name.static MetatraderDeal.DealEntryType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEAL_ENTRY_IN
public static final MetatraderDeal.DealEntryType DEAL_ENTRY_IN
-
DEAL_ENTRY_OUT
public static final MetatraderDeal.DealEntryType DEAL_ENTRY_OUT
-
DEAL_ENTRY_INOUT
public static final MetatraderDeal.DealEntryType DEAL_ENTRY_INOUT
-
DEAL_ENTRY_OUT_BY
public static final MetatraderDeal.DealEntryType DEAL_ENTRY_OUT_BY
-
-
Method Detail
-
values
public static MetatraderDeal.DealEntryType[] 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 (MetatraderDeal.DealEntryType c : MetatraderDeal.DealEntryType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MetatraderDeal.DealEntryType 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
-
-