Class Updater<O>
java.lang.Object
ch.nolix.base.programcontrol.updater.Updater<O>
- All Implemented Interfaces:
Clearable, EmptinessRequestable, IUpdater<O>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the given updater to the currentIUpdater.voidaddUpdates(ExtendedIterable<Consumer<O>> updates) Adds the given updaters to the currentIUpdater.voidclear()Removes the elements of the currentClearable.booleanisEmpty()voidupdateObjectAndClear(O object) Updates the given object and clears the currentIUpdater.Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface EmptinessRequestable
containsAny
-
Constructor Details
-
Updater
public Updater()
-
-
Method Details
-
addUpdate
-
addUpdates
Adds the given updaters to the currentIUpdater.- Specified by:
addUpdatesin interfaceIUpdater<O>- Parameters:
updates-
-
clear
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceEmptinessRequestable- Returns:
- true if
EmptinessRequestabledoes not contain an element, false otherwise
-
updateObjectAndClear
Updates the given object and clears the currentIUpdater.- Specified by:
updateObjectAndClearin interfaceIUpdater<O>- Parameters:
object-
-