|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<InstrumentProfileType>
com.dxfeed.ipf.InstrumentProfileType
public enum InstrumentProfileType
Defines standard types of InstrumentProfile
. Note that other (unknown) types
can be used without listing in this class - use it for convenience only.
Please see Instrument Profile Format documentation for complete description.
Enum Constant Summary | |
---|---|
BOND
|
|
CURRENCY
|
|
ETF
|
|
FOREX
|
|
FUTURE
|
|
INDEX
|
|
MONEY_MARKET_FUND
|
|
MUTUAL_FUND
|
|
OPTION
|
|
OTHER
|
|
PRODUCT
|
|
STOCK
|
Method Summary | |
---|---|
static int |
compareTypes(java.lang.String type1,
java.lang.String type2)
Compares two specified types for order. |
static InstrumentProfileType |
find(java.lang.String name)
Returns field for specified name or null if field is not found. |
static InstrumentProfileType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static InstrumentProfileType[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final InstrumentProfileType CURRENCY
public static final InstrumentProfileType FOREX
public static final InstrumentProfileType BOND
public static final InstrumentProfileType INDEX
public static final InstrumentProfileType STOCK
public static final InstrumentProfileType ETF
public static final InstrumentProfileType MUTUAL_FUND
public static final InstrumentProfileType MONEY_MARKET_FUND
public static final InstrumentProfileType PRODUCT
public static final InstrumentProfileType FUTURE
public static final InstrumentProfileType OPTION
public static final InstrumentProfileType OTHER
Method Detail |
---|
public static final InstrumentProfileType[] values()
for(InstrumentProfileType c : InstrumentProfileType.values()) System.out.println(c);
public static InstrumentProfileType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namepublic static InstrumentProfileType find(java.lang.String name)
valueOf(java.lang.String)
method is that later method throws exception for unknown fields.
public static int compareTypes(java.lang.String type1, java.lang.String type2)
Unlike natual ordering of InstrumentProfileType
enum itself this method supports
unknown types and orders them alphabetically after standard ones.
The natural ordering implied by this method is designed for convenient data representation in a file and shall not be used for business purposes.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |