org.otfeed.event
Enum InstrumentEnum

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

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

Enumerates instrument types.


Enum Constant Summary
FUTURE
          Future
INDEX
          Index
OPTION
          Option
SSFUTURE
          Single Stock Future
STOCK
          Stock
 
Field Summary
 int code
           
static java.util.Map<java.lang.Integer,InstrumentEnum> decoder
           
 
Method Summary
static InstrumentEnum valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static InstrumentEnum[] 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

STOCK

public static final InstrumentEnum STOCK
Stock


INDEX

public static final InstrumentEnum INDEX
Index


OPTION

public static final InstrumentEnum OPTION
Option


FUTURE

public static final InstrumentEnum FUTURE
Future


SSFUTURE

public static final InstrumentEnum SSFUTURE
Single Stock Future

Field Detail

code

public final int code

decoder

public static final java.util.Map<java.lang.Integer,InstrumentEnum> decoder
Method Detail

values

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

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

valueOf

public static InstrumentEnum 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.