Package biz.onixs.cme.stp.handler
Enum PriceType
- java.lang.Object
-
- java.lang.Enum<PriceType>
-
- biz.onixs.cme.stp.handler.PriceType
-
- All Implemented Interfaces:
Serializable,Comparable<PriceType>
public enum PriceType extends Enum<PriceType>
Settlement Price indicator for TAS, EFM and EFP’s priced off settlement.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BasisPointsBasis points.DerivedPriceBlockDerived Price BlockFixedCabinetTradePriceFixed cabinet trade price (primarily for listed futures and options)NoneDefault value.PercentagePercentage (i.e. percent of par)PerUnitPer unit (i.e. per share or contract)SpreadSpread (basis points spread)TentativePlaceholderPriceTentative placeholder priceUpdatedActualPriceUpdated actual priceVariableCabinetTradePriceVariable cabinet trade price (primarily for listed futures and options)YieldYieldYieldDiffYield Diff
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PriceTypeforValue(int value)Returns enum value for the int representationintgetValue()Gets current value.static PriceTypevalueOf(String name)Returns the enum constant of this type with the specified name.static PriceType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
None
public static final PriceType None
Default value. Do not use it directly.
-
Percentage
public static final PriceType Percentage
Percentage (i.e. percent of par)
-
PerUnit
public static final PriceType PerUnit
Per unit (i.e. per share or contract)
-
Spread
public static final PriceType Spread
Spread (basis points spread)
-
Yield
public static final PriceType Yield
Yield
-
FixedCabinetTradePrice
public static final PriceType FixedCabinetTradePrice
Fixed cabinet trade price (primarily for listed futures and options)
-
VariableCabinetTradePrice
public static final PriceType VariableCabinetTradePrice
Variable cabinet trade price (primarily for listed futures and options)
-
BasisPoints
public static final PriceType BasisPoints
Basis points. When the price is not spread based.
-
TentativePlaceholderPrice
public static final PriceType TentativePlaceholderPrice
Tentative placeholder price
-
UpdatedActualPrice
public static final PriceType UpdatedActualPrice
Updated actual price
-
DerivedPriceBlock
public static final PriceType DerivedPriceBlock
Derived Price Block
-
YieldDiff
public static final PriceType YieldDiff
Yield Diff
-
-
Method Detail
-
values
public static PriceType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PriceType c : PriceType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PriceType valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public int getValue()
Gets current value.- Returns:
- current value.
-
forValue
public static PriceType forValue(int value)
Returns enum value for the int representation- Parameters:
value- value- Returns:
- value.
-
-