Enum StrategyTypeDTO
- java.lang.Object
-
- java.lang.Enum<StrategyTypeDTO>
-
- tech.cassandre.trading.bot.dto.strategy.StrategyTypeDTO
-
- All Implemented Interfaces:
Serializable
,Comparable<StrategyTypeDTO>
public enum StrategyTypeDTO extends Enum<StrategyTypeDTO>
Order types forStrategyDTO
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BASIC_STRATEGY
Basic strategy.BASIC_TA4J_STRATEGY
Basic Ta4j strategy.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StrategyTypeDTO
valueOf(String name)
Returns the enum constant of this type with the specified name.static StrategyTypeDTO[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BASIC_STRATEGY
public static final StrategyTypeDTO BASIC_STRATEGY
Basic strategy.
-
BASIC_TA4J_STRATEGY
public static final StrategyTypeDTO BASIC_TA4J_STRATEGY
Basic Ta4j strategy.
-
-
Method Detail
-
values
public static StrategyTypeDTO[] 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 (StrategyTypeDTO c : StrategyTypeDTO.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StrategyTypeDTO 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
-
-