Uses of Class
org.praxislive.code.userapi.Ref
-
Packages that use Ref Package Description org.praxislive.code.userapi -
-
Uses of Ref in org.praxislive.code.userapi
Methods in org.praxislive.code.userapi that return Ref Modifier and Type Method Description Ref<T>Ref. apply(Consumer<? super T> consumer)Pass the value to the provided Consumer function.<K> Ref<T>Ref. asyncCompute(K key, Function<K,? extends T> function)Run an intensive or time consuming function as a background task to update the value.<V> Ref<T>Ref. bind(BiConsumer<? super T,V> binder, BiConsumer<? super T,V> unbinder, V bindee)Bind something (usually a callback / listener) to the reference, providing for automatic removal on reset or disposal.Ref<T>Ref. clear()Disposes the value and clears initialization.Ref<T>Ref. compute(Function<? super T,? extends T> function)Transform the value using the supplied function.Ref<T>Ref. ifPresent(Consumer<? super T> consumer)Pass the value to the provided Consumer function if one exists. Unlikeapplythis may be safely called prior to initialization.Ref<T>Ref. init(Supplier<? extends T> supplier)Initialize the reference, calling the supplier function if a value is needed.Ref<T>Ref. onDispose(Consumer<? super T> onDisposeHandler)Provide a function to run on the value whenever the value is being disposed of, either because the Ref has been removed from the code, the root is being stopped, orclearhas been explicitly called.Ref<T>Ref. onReset(Consumer<? super T> onResetHandler)Provide a function to run on the value whenever the Ref is reset - eg.
-