com.dukascopy.api
Class ReversalAmount

java.lang.Object
  extended by com.dukascopy.api.ReversalAmount

public final class ReversalAmount
extends Object


Field Summary
static ReversalAmount FIVE
           
static ReversalAmount FOUR
           
static int MAXIMAL_REVERSAL_AMOUNT
           
static ReversalAmount ONE
           
static ReversalAmount THREE
           
static ReversalAmount TWO
           
 
Method Summary
 int compareTo(ReversalAmount reversalAmount)
           
static List<ReversalAmount> createJForexPriceRanges()
          Method creates and returns all available to JForex Reversal Amounts
 boolean equals(Object obj)
           
 int getAmount()
           
 int hashCode()
           
 String toString()
           
static ReversalAmount valueOf(int amount)
          The method returns appropriate Reversal Amount for the passed amount
static ReversalAmount valueOf(String str)
          The method returns appropriate ReversalAmount for the passed String
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ONE

public static final ReversalAmount ONE

TWO

public static final ReversalAmount TWO

THREE

public static final ReversalAmount THREE

FOUR

public static final ReversalAmount FOUR

FIVE

public static final ReversalAmount FIVE

MAXIMAL_REVERSAL_AMOUNT

public static int MAXIMAL_REVERSAL_AMOUNT
Method Detail

valueOf

public static ReversalAmount valueOf(String str)
The method returns appropriate ReversalAmount for the passed String

Parameters:
str -
Returns:
Reversal Amount

valueOf

public static ReversalAmount valueOf(int amount)
The method returns appropriate Reversal Amount for the passed amount

Parameters:
str -
Returns:
Reversal Amount

createJForexPriceRanges

public static List<ReversalAmount> createJForexPriceRanges()
Method creates and returns all available to JForex Reversal Amounts

Returns:
the list of Reversal Amounts

toString

public String toString()
Overrides:
toString in class Object

getAmount

public int getAmount()

compareTo

public int compareTo(ReversalAmount reversalAmount)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2011. All Rights Reserved.