com.dxfeed.event.market
Enum PriceType

java.lang.Object
  extended by java.lang.Enum<PriceType>
      extended by com.dxfeed.event.market.PriceType
All Implemented Interfaces:
Serializable, Comparable<PriceType>

public enum PriceType
extends Enum<PriceType>

Type of the price value.


Enum Constant Summary
FINAL
          Final price (e.g. final settlement price).
INDICATIVE
          Indicative price (e.g. derived via math formula).
PRELIMINARY
          Preliminary price (e.g. preliminary settlement price), usually posted prior to FINAL price.
REGULAR
          Regular price.
 
Method Summary
 int getCode()
           
static PriceType valueOf(int code)
           
static PriceType valueOf(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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

REGULAR

public static final PriceType REGULAR
Regular price.


INDICATIVE

public static final PriceType INDICATIVE
Indicative price (e.g. derived via math formula).


PRELIMINARY

public static final PriceType PRELIMINARY
Preliminary price (e.g. preliminary settlement price), usually posted prior to FINAL price.


FINAL

public static final PriceType FINAL
Final price (e.g. final settlement price).

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 name
NullPointerException - if the argument is null

getCode

public int getCode()

valueOf

public static PriceType valueOf(int code)


Copyright © 2013 Devexperts. All Rights Reserved.