Class AbstractStrategyEvent
java.lang.Object
com.wualabs.qtsurfer.engine.strategy.event.AbstractStrategyEvent
- All Implemented Interfaces:
Event<Strategy>, StrategyEvent
- Direct Known Subclasses:
AbstractStrategySignal
Base class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final @NonNull Strategyprotected final @NonNull StrategyEventType -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractStrategyEvent(@NonNull Strategy strategy, @NonNull StrategyEventType type) -
Method Summary
Modifier and TypeMethodDescriptionboolean<T> T@NonNull Strategylong@NonNull StrategyEventTypegetType()booleaninthashCode()final voidnow()<T extends AbstractStrategyEvent>
TvoidsetTimestamp(long timestamp) toString()protected voidtoString(com.google.common.base.MoreObjects.ToStringHelper ts) Methods inherited from interface StrategyEvent
getSource
-
Field Details
-
strategy
-
type
-
-
Constructor Details
-
AbstractStrategyEvent
protected AbstractStrategyEvent(@NonNull @NonNull Strategy strategy, @NonNull @NonNull StrategyEventType type)
-
-
Method Details
-
now
public final void now() -
set
public <T extends AbstractStrategyEvent> T set(@NonNull @NonNull String key, @NonNull @NonNull Object... values) -
get
-
has
-
getProperties
- Specified by:
getPropertiesin interfaceStrategyEvent
-
toString
-
hashCode
-
equals
-
toString
protected void toString(com.google.common.base.MoreObjects.ToStringHelper ts) -
getStrategy
- Specified by:
getStrategyin interfaceStrategyEvent
-
getType
- Specified by:
getTypein interfaceStrategyEvent
-
getTimestamp
public long getTimestamp()- Specified by:
getTimestampin interfaceStrategyEvent
-
setTimestamp
public void setTimestamp(long timestamp)
-