|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dxfeed.api.osub.TimeSeriesSubscriptionSymbol<T>
T
- the type of the event symbol.public class TimeSeriesSubscriptionSymbol<T>
Represents subscription to time-series of events.
This is symbol is observed by ObservableSubscriptionChangeListener
methods symbolsAdded
and symbolsRemoved
when time-series subscription is created via DXFeedTimeSeriesSubscription
class.
eventSymbol
only.
It means, that a set of time-series subscription symbols can contain at most one time-series subscription
for each event symbol.
Constructor Summary | |
---|---|
TimeSeriesSubscriptionSymbol(T eventSymbol,
long fromTime)
Creates time-series subscription symbol with a specified event symbol and subscription time. |
Method Summary | |
---|---|
boolean |
equals(Object o)
Returns true if other object is TimeSeriesSubscriptionSymbol with
the same eventSymbol . |
T |
getEventSymbol()
Returns event symbol. |
long |
getFromTime()
Returns subscription time. |
int |
hashCode()
Returns eventSymbol hash code. |
String |
toString()
Returns string representation of this time-series subscription symbol. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TimeSeriesSubscriptionSymbol(T eventSymbol, long fromTime)
eventSymbol
- the event symbol.fromTime
- the subscription time.
NullPointerException
- if eventSymbol is null
.Method Detail |
---|
public T getEventSymbol()
public long getFromTime()
public boolean equals(Object o)
true
if other object is TimeSeriesSubscriptionSymbol
with
the same eventSymbol
.
equals
in class Object
public int hashCode()
eventSymbol
hash code.
hashCode
in class Object
eventSymbol
hash code.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |