public final class TickBarSize extends java.lang.Object implements java.lang.Comparable<TickBarSize>, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static TickBarSize |
FIVE |
static TickBarSize |
FOUR |
static java.util.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
|
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
|
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
public static java.util.List<TickBarSize> createJForexTickBarSizes()
public static TickBarSize valueOf(java.lang.String str)
str
- String representationpublic static TickBarSize valueOf(int size)
size
- size valuepublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int getSize()
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(TickBarSize tickBarSize)
if (TickBarSize == null) or (TickBarSize.getSize() < this.getSize()) Returns 1
if TickBarSize.getSize() > this.getSize() Returns -1
Otherwise Returns 0
compareTo
in interface java.lang.Comparable<TickBarSize>
tickBarSize
- TickBarSize object to compareCopyright © 2024. All rights reserved.