Package | Description |
---|---|
org.codefx.libfx.concurrent.when |
Allows to make sure some action which is triggered by a change on an
ObservableValue gets executed under threading. |
Modifier and Type | Method and Description |
---|---|
ExecuteOnceWhen<T> |
ExecuteWhen.thenOnce(Consumer<? super T> action)
Creates an instance which:
observes the
ObservableValue (specified for this builder's construction) for new values
checks each new value against the condition set with ExecuteWhen.when(Predicate) (calling which is required)
executes the specified action once if a value fulfills the condition
Note that the observation does not start until executeWhen() is called. |
This documentation is licensed under CC-BY 4.0, attributed to Nicolai Parlog from CodeFX.