Uses of Interface
org.apache.juneau.commons.function.OptionalSupplier
Packages that use OptionalSupplier
Package
Description
Functional programming utilities including enhanced function interfaces, consumers, suppliers,
tuples, and exception-handling variants.
Thread-safe system property access with support for global and per-thread overrides,
making it useful for unit tests and configuration management.
Common internal utilities.
-
Uses of OptionalSupplier in org.apache.juneau.commons.function
Classes in org.apache.juneau.commons.function that implement OptionalSupplierModifier and TypeClassDescriptionclassA thread-safe supplier that caches the result of the first call and supports resetting the cache.Methods in org.apache.juneau.commons.function that return OptionalSupplierModifier and TypeMethodDescriptionstatic <T> OptionalSupplier<T>OptionalSupplier.empty()Creates an empty OptionalSupplier that always returnsnull .default OptionalSupplier<T>If a value is present, and the value matches the given predicate, returns an OptionalSupplier describing the value, otherwise returns an empty OptionalSupplier.default <U> OptionalSupplier<U>OptionalSupplier.flatMap(Function<? super T, ? extends OptionalSupplier<? extends U>> mapper) If a value is present, returns the result of applying the given OptionalSupplier-bearing mapping function to the value, otherwise returns an empty OptionalSupplier.default <U> OptionalSupplier<U>If a value is present, applies the provided mapping function to it and returns an OptionalSupplier describing the result.static <T> OptionalSupplier<T>Creates an OptionalSupplier from a Supplier.static <T> OptionalSupplier<T>OptionalSupplier.ofNullable(T value) Creates an OptionalSupplier that always returns the specified value.Method parameters in org.apache.juneau.commons.function with type arguments of type OptionalSupplierModifier and TypeMethodDescriptiondefault <U> OptionalSupplier<U>OptionalSupplier.flatMap(Function<? super T, ? extends OptionalSupplier<? extends U>> mapper) If a value is present, returns the result of applying the given OptionalSupplier-bearing mapping function to the value, otherwise returns an empty OptionalSupplier. -
Uses of OptionalSupplier in org.apache.juneau.commons.settings
Classes in org.apache.juneau.commons.settings that implement OptionalSupplierModifier and TypeClassDescriptionclassSetting<T>A resettable supplier that provides convenience methods for type conversion.classA specializedSettingfor string values that provides convenience methods for type conversion.Methods in org.apache.juneau.commons.settings with parameters of type OptionalSupplierModifier and TypeMethodDescriptionSettings.Builder.globalStore(OptionalSupplier<SettingStore> supplier) Sets the supplier for the global store.Settings.Builder.localStore(OptionalSupplier<SettingStore> supplier) Sets the supplier for the local (per-thread) store. -
Uses of OptionalSupplier in org.apache.juneau.commons.utils
Methods in org.apache.juneau.commons.utils that return OptionalSupplierModifier and TypeMethodDescriptionstatic <T> OptionalSupplier<T>Creates a thread-safe memoizing supplier that computes a value once and caches it.