cloneIfNeeded

open fun cloneIfNeeded(destination: Node<T>, reaction: Reaction<T>): SpeedSelectionStrategy<T, P>

Return

A copy of the strategy if the strategy is stateful, and this object otherwise. The default implementation assumes a stateless strategy.

Parameters

destination

the Node where the strategy is being cloned

reaction

the Reaction where strategy is being cloned