|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dxfeed.event.candle.CandleSymbol
public class CandleSymbol
Symbol that should be used with DXFeedSubscription
class
to subscribe for Candle
events.
Method Summary | |
---|---|
boolean |
equals(Object o)
Indicates whether this symbol is the same as another one. |
CandleAlignment |
getAlignment()
Returns alignment attribute of this symbol. |
String |
getBaseSymbol()
Returns base market symbol without attributes. |
CandleExchange |
getExchange()
Returns exchange attribute of this symbol. |
CandlePeriod |
getPeriod()
Returns aggregation period of this symbol. |
CandlePrice |
getPrice()
Returns price type attribute of this symbol. |
CandleSession |
getSession()
Returns session attribute of this symbol. |
int |
hashCode()
Returns hash code of this symbol. |
String |
toString()
Returns string representation of this symbol. |
static CandleSymbol |
valueOf(String symbol)
Converts the given string symbol into the candle symbol object. |
static CandleSymbol |
valueOf(String symbol,
CandleSymbolAttribute<?> attribute)
Converts the given string symbol into the candle symbol object with the specified attribute set. |
static CandleSymbol |
valueOf(String symbol,
CandleSymbolAttribute<?> attribute,
CandleSymbolAttribute<?>... attributes)
Converts the given string symbol into the candle symbol object with the specified attributes set. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public String getBaseSymbol()
public CandleExchange getExchange()
public CandlePrice getPrice()
public CandleSession getSession()
public CandlePeriod getPeriod()
public CandleAlignment getAlignment()
public String toString()
valueOf(String)
method.
toString
in class Object
public boolean equals(Object o)
equals
in class Object
true
if this symbol is the same as another one.public int hashCode()
hashCode
in class Object
public static CandleSymbol valueOf(String symbol)
symbol
- the string symbol.
IllegalArgumentException
- if the string does not represent a valid symbol.public static CandleSymbol valueOf(String symbol, CandleSymbolAttribute<?> attribute)
symbol
- the string symbol.attribute
- the attribute to set.
IllegalArgumentException
- if the string does not represent a valid symbol.public static CandleSymbol valueOf(String symbol, CandleSymbolAttribute<?> attribute, CandleSymbolAttribute<?>... attributes)
symbol
- the string symbol.attribute
- the attribute to set.attributes
- more attributes to set.
IllegalArgumentException
- if the string does not represent a valid symbol.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |