public final class ReversalAmount extends Object implements Comparable<ReversalAmount>
Modifier and Type | Field and Description |
---|---|
static ReversalAmount |
FIVE |
static ReversalAmount |
FOUR |
static int |
MAXIMAL_REVERSAL_AMOUNT |
static ReversalAmount |
ONE |
static ReversalAmount |
THREE |
static ReversalAmount |
TWO |
Modifier and Type | Method and Description |
---|---|
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 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
|
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
public static ReversalAmount valueOf(String str)
str
- String representationpublic static ReversalAmount valueOf(int amount)
amount
- int to parse to ReversalAmountpublic static List<ReversalAmount> createJForexPriceRanges()
public int getAmount()
public int compareTo(ReversalAmount reversalAmount)
compareTo
in interface Comparable<ReversalAmount>
reversalAmount
- ReversalAmount object to compareCopyright © 2016. All rights reserved.