java.lang.Object
org.praxislive.code.userapi.Ref.Input<T>
- Type Parameters:
T- type of references
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClear all links added withonUpdate()oronUpdate(java.util.function.Consumer).onUpdate()Returns a newLinkablefor reacting to updates in the list of values.Connect a consumer for reacting to updates in the list of values.protected voidvalues()Current list of connected values.
-
Constructor Details
-
Input
protected Input()
-
-
Method Details
-
values
Current list of connected values. This list contains the values from all connected Refs that have initialized and non-null values.- Returns:
- list of connected values
-
clearLinks
Clear all links added withonUpdate()oronUpdate(java.util.function.Consumer).- Returns:
- this
-
onUpdate
Returns a newLinkablefor reacting to updates in the list of values. The Linkable will also be called immediately on addition with the existing values.- Returns:
- linkable for values changes
-
onUpdate
Connect a consumer for reacting to updates in the list of values. The consumer will also be called immediately on addition with the existing values.This method is a shorthand for calling
onUpdate().link(consumer).- Parameters:
consumer- consumer called on updates- Returns:
- this
-
update
-