com.dukascopy.api
Enum DataType

java.lang.Object
  extended by java.lang.Enum<DataType>
      extended by com.dukascopy.api.DataType
All Implemented Interfaces:
Serializable, Comparable<DataType>

public enum DataType
extends Enum<DataType>


Enum Constant Summary
POINT_AND_FIGURE
          Point&Figure
PRICE_RANGE_AGGREGATION
          Range Bars for 2 pips, 3 pips, 4 pips, etc
STATIC_DATA
           
TICK_BAR
          Bar which consists of exact number of ticks
TICKS
          Just ticks
TIME_PERIOD_AGGREGATION
          Candles for periods 1 sec, 10 sec, 1 min, etc
 
Method Summary
static DataType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DataType[] values()
          Returns an array containing the constants of this enum type, in the order they are 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

TICKS

public static final DataType TICKS
Just ticks


TICK_BAR

public static final DataType TICK_BAR
Bar which consists of exact number of ticks


TIME_PERIOD_AGGREGATION

public static final DataType TIME_PERIOD_AGGREGATION
Candles for periods 1 sec, 10 sec, 1 min, etc


PRICE_RANGE_AGGREGATION

public static final DataType PRICE_RANGE_AGGREGATION
Range Bars for 2 pips, 3 pips, 4 pips, etc


POINT_AND_FIGURE

public static final DataType POINT_AND_FIGURE
Point&Figure


STATIC_DATA

public static final DataType STATIC_DATA
Method Detail

values

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

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

valueOf

public static DataType 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


Copyright © 2011. All Rights Reserved.