|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dxfeed.event.candle.CandleExchange
public class CandleExchange
Exchange attribute of CandleSymbol
defines exchange identifier where data is
taken from to build the candles.
MarketEventSymbols.getExchangeCode
and
changeExchangeCode
methods.
Field Summary | |
---|---|
static CandleExchange |
COMPOSITE
Composite exchange where data is taken from all exchanges. |
static CandleExchange |
DEFAULT
Default exchange is COMPOSITE . |
Method Summary | |
---|---|
String |
changeAttributeForSymbol(String symbol)
Returns candle event symbol string with this exchange set. |
void |
checkInAttributeImpl(CandleSymbol candleSymbol)
Internal method that initializes attribute in the candle symbol. |
boolean |
equals(Object o)
Indicates whether this exchange attribute is the same as another one. |
static CandleExchange |
getAttributeForSymbol(String symbol)
Returns exchange attribute object of the given candle symbol string. |
char |
getExchangeCode()
Returns exchange code. |
int |
hashCode()
Returns hash code of this exchange attribute. |
String |
toString()
Returns string representation of this exchange. |
static CandleExchange |
valueOf(char exchangeCode)
Returns exchange attribute object that corresponds to the specified exchange code character. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final CandleExchange COMPOSITE
public static final CandleExchange DEFAULT
COMPOSITE
.
Method Detail |
---|
public char getExchangeCode()
'\0'
for COMPOSITE
exchange.
public String toString()
"COMPOSITE"
for COMPOSITE
exchange or
exchange character otherwise.
toString
in class Object
public boolean equals(Object o)
equals
in class Object
true
if this exchange attribute is the same as another one.public int hashCode()
hashCode
in class Object
public String changeAttributeForSymbol(String symbol)
changeAttributeForSymbol
in interface CandleSymbolAttribute<CandleExchange>
symbol
- original candle event symbol.
public void checkInAttributeImpl(CandleSymbol candleSymbol)
checkInAttributeImpl
in interface CandleSymbolAttribute<CandleExchange>
candleSymbol
- candle symbol.
IllegalStateException
- if used outside of internal initialization logic.public static CandleExchange valueOf(char exchangeCode)
exchangeCode
- exchange code character.
public static CandleExchange getAttributeForSymbol(String symbol)
DEFAULT
if the symbol does not have exchange attribute.
symbol
- candle symbol string.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |