Uses of Interface
org.microbean.invoke.OptionalSupplier
-
Uses of OptionalSupplier in org.microbean.invoke
Classes in org.microbean.invoke that implement OptionalSupplierModifier and TypeClassDescriptionfinal classAbsence<T>AnOptionalSupplierimplementation that indicates permanent absence.final classAnOptionalSupplierthat computes the value it will return from itsCachingSupplier.get()method when that method is first invoked, and that returns that computed value for all subsequent invocations of that method.final classAnOptionalSupplierimplementation that supplies a fixed value.Methods in org.microbean.invoke that return OptionalSupplierModifier and TypeMethodDescriptionstatic <T> OptionalSupplier<T>OptionalSupplier.of()InvokesAbsence.instance()and returns the result.static <T> OptionalSupplier<T>Returns anOptionalSupplierrepresenting the suppliedSupplier.static <T> OptionalSupplier<T>Returns anOptionalSupplierthat will, loosely speaking, try the suppliedsupplierfirst, and, if it throws aNoSuchElementExceptionor anUnsupportedOperationExceptionfrom itsSupplier.get()method, will then try the supplieddefaults.static <T> OptionalSupplier<T>OptionalSupplier.of(OptionalSupplier.Determinism determinism, Supplier<? extends T> supplier) Returns a newOptionalSupplierwhosedeterminism()method will return the suppliedOptionalSupplier.Determinismand whoseget()method will return the result of invoking theSupplier.get()method on the suppliedsupplier.static <T> OptionalSupplier<T>OptionalSupplier.of(T value) Returns a newOptionalSupplierwhosedeterminism()method will returnOptionalSupplier.Determinism.PRESENTand whoseget()method will return the suppliedvalue.