org.otfeed.command
Enum ListSymbolEnum

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

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

Enumerates symbol types.

See also: OTSymbol.


Enum Constant Summary
FUTURE
          Future
INDEX
          Index
OPTION
          Option
SSFUTURE
          Single stock future
STOCK
          Stock
TOP_TEN
          Top ten
 
Field Summary
static java.util.Set<ListSymbolEnum> ALL
          Set of all possible symbol types.
 int code
           
static int CONTAINS_FLAG
           
 
Method Summary
static java.util.Set<ListSymbolEnum> combine(ListSymbolEnum... symbol)
          Allows caller to build a set from a list of ListSymbolEnum values.
static ListSymbolEnum valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ListSymbolEnum[] 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 ListSymbolEnum STOCK
Stock


INDEX

public static final ListSymbolEnum INDEX
Index


OPTION

public static final ListSymbolEnum OPTION
Option


FUTURE

public static final ListSymbolEnum FUTURE
Future


SSFUTURE

public static final ListSymbolEnum SSFUTURE
Single stock future


TOP_TEN

public static final ListSymbolEnum TOP_TEN
Top ten

Field Detail

CONTAINS_FLAG

public static final int CONTAINS_FLAG
See Also:
Constant Field Values

code

public final int code

ALL

public static final java.util.Set<ListSymbolEnum> ALL
Set of all possible symbol types.

Method Detail

values

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

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

valueOf

public static ListSymbolEnum 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<ListSymbolEnum> combine(ListSymbolEnum... symbol)
Allows caller to build a set from a list of ListSymbolEnum values.

Example:

   Set indexAndOption = ListSymbolEnum.combine(
                    ListSymbolEnum.INDEX, ListSymbolEnum.OPTION);
 

Parameters:
symbol - list of symbol types.
Throws:
java.lang.IllegalArgumentException - if same symbol type appears more than once in the parameter list.


Copyright © 2007 Mike Kroutikov. All Rights Reserved.