com.dukascopy.api
Enum Filter

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

public enum Filter
extends Enum<Filter>

Different methods of flats filtering


Enum Constant Summary
ALL_FLATS
          Filter all flats
NO_FILTER
          Don't filter anything
WEEKENDS
          Filter flats at the weekends (21:00 or 22:00 Friday - 21:00 or 22:00 Sunday)
 
Method Summary
static Filter valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Filter[] 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

NO_FILTER

public static final Filter NO_FILTER
Don't filter anything


WEEKENDS

public static final Filter WEEKENDS
Filter flats at the weekends (21:00 or 22:00 Friday - 21:00 or 22:00 Sunday)


ALL_FLATS

public static final Filter ALL_FLATS
Filter all flats

Method Detail

values

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

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

valueOf

public static Filter 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.