Interface StateSynchronizer.UpdateGenerator<StateT extends Revisioned>

  • Type Parameters:
    StateT - The type of state it generates updates for.
    All Superinterfaces:
    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.

    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) -> {
    • Method Summary

      • Methods inherited from interface java.util.function.BiConsumer

        accept, andThen