Interface IUpdater<O>
- All Superinterfaces:
Clearable, EmptinessRequestable
- All Known Implementing Classes:
Updater
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the given updater to the currentIUpdater.voidaddUpdates(ExtendedIterable<Consumer<O>> updates) Adds the given updaters to the currentIUpdater.voidupdateObjectAndClear(O object) Updates the given object and clears the currentIUpdater.Methods inherited from interface EmptinessRequestable
containsAny, isEmpty
-
Method Details
-
addUpdate
Adds the given updater to the currentIUpdater.- Parameters:
update-- Throws:
RuntimeException- if the given updater is null
-
addUpdates
Adds the given updaters to the currentIUpdater.- Parameters:
updates-- Throws:
RuntimeException- if the given updaters is nullRuntimeException- if one of the given updaters is null
-
updateObjectAndClear
Updates the given object and clears the currentIUpdater.- Parameters:
object-- Throws:
RuntimeException- if the given object is null
-