T
- the type of the event symbol.public class TimeSeriesSubscriptionSymbol<T> extends Object implements Serializable
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 and Description |
---|
TimeSeriesSubscriptionSymbol(T eventSymbol,
long fromTime)
Creates time-series subscription symbol with a specified event symbol and subscription time.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public TimeSeriesSubscriptionSymbol(T eventSymbol, long fromTime)
eventSymbol
- the event symbol.fromTime
- the subscription time.NullPointerException
- if eventSymbol is null
.public T getEventSymbol()
public long getFromTime()
public boolean equals(Object o)
true
if other object is TimeSeriesSubscriptionSymbol
with
the same eventSymbol
.public int hashCode()
eventSymbol
hash code.Copyright © 2014 Devexperts. All Rights Reserved.