Interface IUpdaterCollector<O>
- Type Parameters:
O- is the type of theObjects the updaters of aIUpdaterCollectorcan mutate.
- All Superinterfaces:
Clearable, EmptinessRequestable
- All Known Implementing Classes:
UpdaterCollector
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddUpdater(Consumer<O> updater) Adds the given updater to the currentIUpdaterCollector.voidaddUpdaters(IContainer<Consumer<O>> updaters) Adds the given updaters to the currentIUpdaterCollector.voidupdateObjectAndClear(O object) Updates the given object and clears the currentIUpdaterCollector.Methods inherited from interface EmptinessRequestable
containsAny, isEmpty
-
Method Details
-
addUpdater
Adds the given updater to the currentIUpdaterCollector.- Parameters:
updater-- Throws:
RuntimeException- if the given updater is null.
-
addUpdaters
Adds the given updaters to the currentIUpdaterCollector.- Parameters:
updaters-- Throws:
RuntimeException- if the given updaters is null.RuntimeException- if one of the given updaters is null.
-
updateObjectAndClear
Updates the given object and clears the currentIUpdaterCollector.- Parameters:
object-- Throws:
RuntimeException- if the given object is null.
-