Klasse UpdaterCollector<O>
java.lang.Object
ch.nolix.core.programcontrol.process.UpdaterCollector<O>
- Typparameter:
O- is the type of theObjects the updaters of aUpdaterCollectorcan mutate.
- Alle implementierten Schnittstellen:
IUpdaterCollector<O>,Clearable,EmptinessRequestable
- Version:
- 2025-01-12
- Autor:
- Silvan Wyss
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidaddUpdater(Consumer<O> updater) Adds the given updater to the currentIUpdaterCollector.voidaddUpdaters(IContainer<Consumer<O>> updaters) Adds the given updaters to the currentIUpdaterCollector.voidclear()Removes the elements of the currentClearable.booleanisEmpty()voidupdateObjectAndClear(O object) Updates the given object and clears the currentIUpdaterCollector.Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden ch.nolix.coreapi.state.staterequest.EmptinessRequestable
containsAny
-
Konstruktordetails
-
UpdaterCollector
public UpdaterCollector()
-
-
Methodendetails
-
addUpdater
Adds the given updater to the currentIUpdaterCollector.- Angegeben von:
addUpdaterin SchnittstelleIUpdaterCollector<O>- Parameter:
updater-
-
addUpdaters
Adds the given updaters to the currentIUpdaterCollector.- Angegeben von:
addUpdatersin SchnittstelleIUpdaterCollector<O>- Parameter:
updaters-
-
clear
public void clear()Removes the elements of the currentClearable. -
isEmpty
public boolean isEmpty()- Angegeben von:
isEmptyin SchnittstelleEmptinessRequestable- Gibt zurück:
- true if
EmptinessRequestabledoes not contain an element.
-
updateObjectAndClear
Updates the given object and clears the currentIUpdaterCollector.- Angegeben von:
updateObjectAndClearin SchnittstelleIUpdaterCollector<O>- Parameter:
object-
-