java.lang.Objectcom.dukascopy.api.ReversalAmount
public final class ReversalAmount
The class indicates the amount of price movement required to shift a chart to the right. This condition is used on charts that only take into consideration price movement instead of both price and time. Is used for Point and Figures charts for example.
| 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)
The method compares passed ReversalAmount with the current one if (ReversalAmount == null) or (ReversalAmount.getAmount() < this.getAmount()) Returns 1 if ReversalAmount.getAmount() > this.getAmount() Returns -1 Otherwise Returns 0 |
static java.util.List<ReversalAmount> |
createJForexPriceRanges()
Method creates and returns all available to JForex Reversal Amounts |
boolean |
equals(java.lang.Object obj)
|
int |
getAmount()
|
int |
hashCode()
|
java.lang.String |
toString()
|
static ReversalAmount |
valueOf(int amount)
The method returns appropriate Reversal Amount for the passed amount |
static ReversalAmount |
valueOf(java.lang.String str)
The method returns appropriate ReversalAmount for the passed String |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final ReversalAmount ONE
public static final ReversalAmount TWO
public static final ReversalAmount THREE
public static final ReversalAmount FOUR
public static final ReversalAmount FIVE
public static int MAXIMAL_REVERSAL_AMOUNT
| Method Detail |
|---|
public static ReversalAmount valueOf(java.lang.String str)
str -
public static ReversalAmount valueOf(int amount)
str -
public static java.util.List<ReversalAmount> createJForexPriceRanges()
public java.lang.String toString()
toString in class java.lang.Objectpublic int getAmount()
public int compareTo(ReversalAmount reversalAmount)
compareTo in interface java.lang.Comparable<ReversalAmount>reversalAmount -
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object