@FunctionalInterface public static interface SingleValueUpdaterCallback.Function
| Modifier and Type | Method and Description |
|---|---|
ITimeBasedState |
invoke(ITimeBasedState stateToUpdate,
double newValue)
The callback for the
SingleValueStateUpdater. |
ITimeBasedState invoke(ITimeBasedState stateToUpdate, double newValue)
SingleValueStateUpdater.stateToUpdate - The propagated state to get updated.newValue - The value to use to edit the stateToUpdate.stateToUpdate can be mutated, or it
can be copied or cloned and that copy can be returned.