org.otfeed.event
Enum TradePropertyEnum

java.lang.Object
  extended by java.lang.Enum<TradePropertyEnum>
      extended by org.otfeed.event.TradePropertyEnum
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TradePropertyEnum>

public enum TradePropertyEnum
extends java.lang.Enum<TradePropertyEnum>

Enumerates misc properties of OTTrade.


Enum Constant Summary
CANCEL
          Trade is the cancel for the previous trade
CLOSE
          Trade provides the high price for the day
FROM_BOOK
          Trade is from an ECN book
HIGH
          Trade provides the high price for the day
LOW
          Trade provides the low price for the day
OPEN
          Trade provides opening price for the day
UPDATE_LAST
          Trade updates the last trade price
UPDATE_VOLUME
          Set if volume is the updated consolidated volume
 
Field Summary
 int code
           
 
Method Summary
static java.util.Set<TradePropertyEnum> combine(TradePropertyEnum... vals)
           
static TradePropertyEnum valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TradePropertyEnum[] 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
 

Enum Constant Detail

OPEN

public static final TradePropertyEnum OPEN
Trade provides opening price for the day


HIGH

public static final TradePropertyEnum HIGH
Trade provides the high price for the day


LOW

public static final TradePropertyEnum LOW
Trade provides the low price for the day


CLOSE

public static final TradePropertyEnum CLOSE
Trade provides the high price for the day


UPDATE_LAST

public static final TradePropertyEnum UPDATE_LAST
Trade updates the last trade price


UPDATE_VOLUME

public static final TradePropertyEnum UPDATE_VOLUME
Set if volume is the updated consolidated volume


CANCEL

public static final TradePropertyEnum CANCEL
Trade is the cancel for the previous trade


FROM_BOOK

public static final TradePropertyEnum FROM_BOOK
Trade is from an ECN book

Field Detail

code

public final int code
Method Detail

values

public static final TradePropertyEnum[] 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(TradePropertyEnum c : TradePropertyEnum.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static TradePropertyEnum 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

combine

public static final java.util.Set<TradePropertyEnum> combine(TradePropertyEnum... vals)


Copyright © 2007 Mike Kroutikov. All Rights Reserved.