T
- the type of the event symbol.public class IndexedEventSubscriptionSymbol<T> extends Object implements Serializable
ObservableSubscriptionChangeListener
methods symbolsAdded
and symbolsRemoved
when subscription to IndexedEvent
is defined.
Instances of this class can be used with DXFeedSubscription
to specify subscription
to a particular source of indexed events. By default, when subscribing to indexed events by
their event symbol object, the subscription is performed to all supported sources.
TimeSeriesEvent
represents a special subtype of IndexedEvent
.
There is a more specific TimeSeriesSubscriptionSymbol
class
that is used when time-series subscription is observed.
eventSymbol
and
source
.Constructor and Description |
---|
IndexedEventSubscriptionSymbol(T eventSymbol,
IndexedEventSource source)
Creates indexed event subscription symbol with a specified event symbol and source.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Returns
true if other object is IndexedEventSubscriptionSymbol with
the same eventSymbol and sourceId . |
T |
getEventSymbol()
Returns event symbol.
|
IndexedEventSource |
getSource()
Returns indexed event source.
|
int |
hashCode()
Returns hash code.
|
String |
toString()
Returns string representation of this indexed event subscription symbol.
|
public IndexedEventSubscriptionSymbol(T eventSymbol, IndexedEventSource source)
eventSymbol
- the event symbol.source
- the source.NullPointerException
- if eventSymbol or source are null null
.public final T getEventSymbol()
public final IndexedEventSource getSource()
public boolean equals(Object o)
true
if other object is IndexedEventSubscriptionSymbol
with
the same eventSymbol
and sourceId
.public int hashCode()
Copyright © 2002–2023 Devexperts LLC. All rights reserved.