Uses of Class
org.apache.juneau.commons.concurrent.NullableReference
Packages that use NullableReference
Package
Description
Concurrent programming utilities including locks and synchronization primitives.
-
Uses of NullableReference in org.apache.juneau.commons.concurrent
Methods in org.apache.juneau.commons.concurrent that return NullableReferenceModifier and TypeMethodDescriptionstatic <V> NullableReference<V>NullableReference.empty()Creates an empty NullableReference with an initial value ofnull .If a value is present, and the value matches the given predicate, returns an NullableReference describing the value, otherwise returns an empty NullableReference.<U> NullableReference<U>NullableReference.flatMap(Function<? super V, ? extends NullableReference<? extends U>> mapper) If a value is present, returns the result of applying the given NullableReference-bearing mapping function to the value, otherwise returns an empty NullableReference.<U> NullableReference<U>If a value is present, applies the provided mapping function to it and returns an NullableReference describing the result.static <V> NullableReference<V>NullableReference.of(V initialValue) Creates an NullableReference with the specified initial value.static <V> NullableReference<V>NullableReference.ofNullable(V initialValue) Creates an NullableReference with the specified initial value (alias forof(Object)).Method parameters in org.apache.juneau.commons.concurrent with type arguments of type NullableReferenceModifier and TypeMethodDescription<U> NullableReference<U>NullableReference.flatMap(Function<? super V, ? extends NullableReference<? extends U>> mapper) If a value is present, returns the result of applying the given NullableReference-bearing mapping function to the value, otherwise returns an empty NullableReference.