- Type Parameters:
StateT
- The type of state it generates updates for.
- All Superinterfaces:
- java.util.function.BiConsumer<StateT,java.util.List<Update<StateT>>>
- Enclosing interface:
- StateSynchronizer<StateT extends Revisioned>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public static interface StateSynchronizer.UpdateGenerator<StateT extends Revisioned>
extends java.util.function.BiConsumer<StateT,java.util.List<Update<StateT>>>
A function which given a state object populates a list of updates that should be applied.
For example:
stateSynchronizer.updateState((state, updates) -> {
updates.addAll(findUpdatesForState(state));
});