public enum InstrumentProfileType extends Enum<InstrumentProfileType>
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 and Description |
---|
BOND |
CFD |
CURRENCY |
ETF |
FOREX |
FUTURE |
INDEX |
MONEY_MARKET_FUND |
MUTUAL_FUND |
OPTION |
OTHER |
PRODUCT |
REMOVED |
SPREAD |
STOCK |
WARRANT |
Modifier and Type | Method and Description |
---|---|
static int |
compareTypes(String type1,
String type2)
Compares two specified types for order.
|
static InstrumentProfileType |
find(String name)
Returns field for specified name or null if field is not found.
|
static InstrumentProfileType |
valueOf(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 are declared.
|
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 WARRANT
public static final InstrumentProfileType CFD
public static final InstrumentProfileType SPREAD
public static final InstrumentProfileType OTHER
public static final InstrumentProfileType REMOVED
public static InstrumentProfileType[] values()
for (InstrumentProfileType c : InstrumentProfileType.values()) System.out.println(c);
public static InstrumentProfileType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static InstrumentProfileType find(String name)
valueOf(java.lang.String)
method is that later method throws exception for unknown fields.public static int compareTypes(String type1, 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.
Copyright © 2002–2023 Devexperts LLC. All rights reserved.