Interface IUpdater<O>

Type Parameters:
O - the type of the Objects the updaters of a IUpdater can mutate.
All Superinterfaces:
Clearable, EmptinessRequestable
All Known Implementing Classes:
Updater

public interface IUpdater<O> extends Clearable
Author:
Silvan Wyss
  • Method Details

    • addUpdate

      void addUpdate(Consumer<O> update)
      Adds the given updater to the current IUpdater.
      Parameters:
      update -
      Throws:
      RuntimeException - if the given updater is null
    • addUpdates

      void addUpdates(ExtendedIterable<Consumer<O>> updates)
      Adds the given updaters to the current IUpdater.
      Parameters:
      updates -
      Throws:
      RuntimeException - if the given updaters is null
      RuntimeException - if one of the given updaters is null
    • updateObjectAndClear

      void updateObjectAndClear(O object)
      Updates the given object and clears the current IUpdater.
      Parameters:
      object -
      Throws:
      RuntimeException - if the given object is null