Enum Class Enums.MAMethod
- All Implemented Interfaces:
Serializable
,Comparable<Enums.MAMethod>
,Constable
- Enclosing interface:
Enums
Moving Average calculation methods.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDouble Exponential Moving Average.Exponential Moving Average.Kauffman Adaptive Moving Average.Modified Exponential Moving Average.Simple Moving Average.Smoothed Moving Average.Triple Exponential Moving Average.Triangular Moving Average.Volume Weighted Moving Average.Weighed Moving Average -
Method Summary
Modifier and TypeMethodDescriptiontoString()
This method has been overridden to display a user friendly version of the input type for use in combo boxes etc.static Enums.MAMethod
Returns the enum constant of this class with the specified name.static Enums.MAMethod[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SMA
Simple Moving Average. -
EMA
Exponential Moving Average. -
SMMA
Smoothed Moving Average. -
MEMA
Modified Exponential Moving Average. -
WMA
Weighed Moving Average -
KAMA
Kauffman Adaptive Moving Average. -
DEMA
Double Exponential Moving Average. -
TEMA
Triple Exponential Moving Average. -
TMA
Triangular Moving Average. -
VWMA
Volume Weighted Moving Average.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
This method has been overridden to display a user friendly version of the input type for use in combo boxes etc. Use the name() method to retrieve the programmatic version of the enum.- Overrides:
toString
in classEnum<Enums.MAMethod>
-