public class CandleSymbol extends Object implements Serializable
DXFeedSubscription
class
to subscribe for Candle
events.Modifier and Type | Method and Description |
---|---|
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.
|
public String getBaseSymbol()
public CandleExchange getExchange()
public CandlePrice getPrice()
public CandleSession getSession()
public CandlePeriod getPeriod()
public CandleAlignment getAlignment()
public String toString()
valueOf(String)
method.public boolean equals(Object o)
public int hashCode()
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.Copyright © 2015 Devexperts. All Rights Reserved.