org.otfeed.protocol
Enum DataEnum
java.lang.Object
java.lang.Enum<DataEnum>
org.otfeed.protocol.DataEnum
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<DataEnum>
public enum DataEnum
- extends java.lang.Enum<DataEnum>
Enumerates types of data objects received from the server.
Method Summary |
static DataEnum |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static DataEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they're declared. |
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
EOD
public static final DataEnum EOD
QUOTE
public static final DataEnum QUOTE
MMQUOTE
public static final DataEnum MMQUOTE
TRADE
public static final DataEnum TRADE
BBO
public static final DataEnum BBO
BOOK_CANCEL
public static final DataEnum BOOK_CANCEL
BOOK_CHANGE
public static final DataEnum BOOK_CHANGE
BOOK_DELETE
public static final DataEnum BOOK_DELETE
BOOK_EXECUTE
public static final DataEnum BOOK_EXECUTE
BOOK_ORDER
public static final DataEnum BOOK_ORDER
BOOK_PRICE_LEVEL
public static final DataEnum BOOK_PRICE_LEVEL
BOOK_PURGE
public static final DataEnum BOOK_PURGE
BOOK_REPLACE
public static final DataEnum BOOK_REPLACE
HALT
public static final DataEnum HALT
SPLIT
public static final DataEnum SPLIT
DIVIDEND
public static final DataEnum DIVIDEND
SYMBOL_CHANGE
public static final DataEnum SYMBOL_CHANGE
EQUITY_INIT
public static final DataEnum EQUITY_INIT
OPTION_INIT
public static final DataEnum OPTION_INIT
OHLC
public static final DataEnum OHLC
OHL_TODAY
public static final DataEnum OHL_TODAY
code
public final int code
values
public static final DataEnum[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(DataEnum c : DataEnum.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static DataEnum 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 name
Copyright © 2007 Mike Kroutikov. All Rights Reserved.