Package com.markose.etrade.order
Enum TransactionType
- java.lang.Object
-
- java.lang.Enum<TransactionType>
-
- com.markose.etrade.order.TransactionType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TransactionType>
public enum TransactionType extends java.lang.Enum<TransactionType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ATNMBUYBUY_TO_COVERMF_EXCHANGESELLSELL_SHORT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TransactionTypefromValue(java.lang.String v)java.lang.Stringvalue()static TransactionTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TransactionType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ATNM
public static final TransactionType ATNM
-
BUY
public static final TransactionType BUY
-
SELL
public static final TransactionType SELL
-
SELL_SHORT
public static final TransactionType SELL_SHORT
-
BUY_TO_COVER
public static final TransactionType BUY_TO_COVER
-
MF_EXCHANGE
public static final TransactionType MF_EXCHANGE
-
-
Method Detail
-
values
public static TransactionType[] 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 (TransactionType c : TransactionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TransactionType valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
value
public java.lang.String value()
-
fromValue
public static TransactionType fromValue(java.lang.String v)
-
-