java.lang.Objectcom.dukascopy.api.TickBarSize
public final class TickBarSize
The class indicates the number of ticks to be included to one Tick Bar
| Field Summary | |
|---|---|
static TickBarSize |
FIVE
|
static TickBarSize |
FOUR
|
static java.util.List<TickBarSize> |
JFOREX_TRADE_BAR_SIZES
|
static TickBarSize |
THREE
|
static TickBarSize |
TWO
|
| Method Summary | |
|---|---|
int |
compareTo(TickBarSize tickBarSize)
The method compares passed TickBarSize with the current one if (TickBarSize == null) or (TickBarSize.getSize() < this.getSize()) Returns 1 if TickBarSize.getSize() > this.getSize() Returns -1 Otherwise Returns 0 |
static java.util.List<TickBarSize> |
createJForexTickBarSizes()
Method creates and returns all available to JForex Tick Bar Sizes |
boolean |
equals(java.lang.Object obj)
|
int |
getSize()
|
int |
hashCode()
|
java.lang.String |
toString()
|
static TickBarSize |
valueOf(int size)
The method returns appropriate TickBarSize for the passed amount |
static TickBarSize |
valueOf(java.lang.String str)
The method returns appropriate TickBarSize for the passed String |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final TickBarSize TWO
public static final TickBarSize THREE
public static final TickBarSize FOUR
public static final TickBarSize FIVE
public static java.util.List<TickBarSize> JFOREX_TRADE_BAR_SIZES
| Method Detail |
|---|
public static java.util.List<TickBarSize> createJForexTickBarSizes()
public static TickBarSize valueOf(java.lang.String str)
str -
public static TickBarSize valueOf(int size)
str -
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int getSize()
public java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(TickBarSize tickBarSize)
compareTo in interface java.lang.Comparable<TickBarSize>tickBarSize -