public final class TickBarSize extends Object implements Comparable<TickBarSize>
Modifier and Type | Field and Description |
---|---|
static TickBarSize |
FIVE |
static TickBarSize |
FOUR |
static List<TickBarSize> |
JFOREX_TRADE_BAR_SIZES |
static TickBarSize |
THREE |
static TickBarSize |
TWO |
Modifier and Type | Method and Description |
---|---|
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 List<TickBarSize> |
createJForexTickBarSizes()
Method creates and returns all available to JForex Tick Bar Sizes
|
boolean |
equals(Object obj) |
int |
getSize() |
int |
hashCode() |
String |
toString() |
static TickBarSize |
valueOf(int size)
The method returns appropriate TickBarSize for the passed amount
|
static TickBarSize |
valueOf(String str)
The method returns appropriate TickBarSize for the passed String
|
public static final TickBarSize TWO
public static final TickBarSize THREE
public static final TickBarSize FOUR
public static final TickBarSize FIVE
public static List<TickBarSize> JFOREX_TRADE_BAR_SIZES
public static List<TickBarSize> createJForexTickBarSizes()
public static TickBarSize valueOf(String str)
str
- String representationpublic static TickBarSize valueOf(int size)
size
- size valuepublic int getSize()
public int compareTo(TickBarSize tickBarSize)
compareTo
in interface Comparable<TickBarSize>
tickBarSize
- TickBarSize object to compareCopyright © 2016. All rights reserved.