Index
All Classes and Interfaces|All Packages
A
- Absence<T> - Class in org.microbean.invoke
-
An
OptionalSupplierimplementation that indicates permanent absence. - ABSENT - Enum constant in enum class org.microbean.invoke.OptionalSupplier.Determinism
-
An
OptionalSupplier.Determinismindicating permanent absence.
B
- BootstrapMethods - Class in org.microbean.invoke
-
Useful constant bootstrap methods and methods that make sense to invoke from
ConstantBootstraps.invoke(Lookup, String, Class, MethodHandle, Object...).
C
- CachingSupplier<T> - Class in org.microbean.invoke
-
An
OptionalSupplierthat 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. - CachingSupplier() - Constructor for class org.microbean.invoke.CachingSupplier
-
Creates a new
CachingSupplier. - CachingSupplier(Supplier<? extends T>) - Constructor for class org.microbean.invoke.CachingSupplier
-
Creates a new
CachingSupplier. - CachingSupplier(T) - Constructor for class org.microbean.invoke.CachingSupplier
-
Creates a new
CachingSupplier. - CD_BootstrapMethods - Static variable in class org.microbean.invoke.ConstantDescs
-
A
ClassDescrepresenting theBootstrapMethodsclass. - ConstantDescs - Class in org.microbean.invoke
-
A utility class containing various
ClassDescconstants. - ContentHashable - Interface in org.microbean.invoke
-
An interface whose implementations can return a
CharSequencefor content-based hashing. - contentHashInput() - Method in interface org.microbean.invoke.ContentHashable
-
Returns an
Optionalwhose content is aCharSequencerepresenting a "content hashable" view of the implementation.
D
- determinism() - Method in class org.microbean.invoke.Absence
-
Returns
OptionalSupplier.Determinism.ABSENTwhen invoked. - determinism() - Method in class org.microbean.invoke.CachingSupplier
-
Returns an
OptionalSupplier.Determinismsuitable for thisCachingSupplier. - determinism() - Method in class org.microbean.invoke.FixedValueSupplier
-
Returns
OptionalSupplier.Determinism.PRESENTwhen invoked. - determinism() - Method in interface org.microbean.invoke.OptionalSupplier
-
Returns an
OptionalSupplier.Determinismdenoting the presence of values returned by thisOptionalSupplier'sget()method. - deterministic() - Method in enum class org.microbean.invoke.OptionalSupplier.Determinism
-
Returns
trueif the presence or absence denoted by thisOptionalSupplier.Determinismis deterministic. - DETERMINISTIC - Enum constant in enum class org.microbean.invoke.OptionalSupplier.Determinism
-
An
OptionalSupplier.Determinismindicating an unknown permanent presence or absence.
E
- exceptionally(Function<? super RuntimeException, ? extends T>) - Method in interface org.microbean.invoke.OptionalSupplier
-
Returns either the result of invoking the
OptionalSupplier.get()method, if aRuntimeExceptiondoes not occur, or the result of invoking theapply(Object)method on the suppliedhandlerwith anyRuntimeExceptionthat does occur, includingNoSuchElementExceptionandUnsupportedOperationExceptioninstances that are used to indicate value absence.
F
- findConstructorCallSite(MethodHandles.Lookup, String, MethodType, Class<?>) - Static method in class org.microbean.invoke.BootstrapMethods
- findSetterCallSite(MethodHandles.Lookup, String, MethodType, Class<?>) - Static method in class org.microbean.invoke.BootstrapMethods
- findStaticCallSiteAsSpreader(MethodHandles.Lookup, String, MethodType, Class<?>) - Static method in class org.microbean.invoke.BootstrapMethods
- findStaticSetterCallSite(MethodHandles.Lookup, String, MethodType, Class<?>) - Static method in class org.microbean.invoke.BootstrapMethods
- findVirtualCallSite(MethodHandles.Lookup, String, MethodType, Class<?>) - Static method in class org.microbean.invoke.BootstrapMethods
- FixedValueSupplier<T> - Class in org.microbean.invoke
-
An
OptionalSupplierimplementation that supplies a fixed value.
G
- get() - Method in class org.microbean.invoke.Absence
-
Throws a
NoSuchElementExceptionwhen invoked. - get() - Method in class org.microbean.invoke.CachingSupplier
-
Returns the value this
CachingSupplierwill forever supply, computing it if necessary with the first invocation by using theSuppliersupplied at construction time. - get() - Method in class org.microbean.invoke.FixedValueSupplier
-
Returns the value supplied at construction time, which may be
null. - get() - Method in interface org.microbean.invoke.OptionalSupplier
-
Returns a value, which may be
null.
H
- handle(BiFunction<? super T, ? super RuntimeException, ? extends U>) - Method in interface org.microbean.invoke.OptionalSupplier
-
Returns the result of invoking the
apply(Object, Object)method on the suppliedhandler, supplying it with the result of an invocation of theOptionalSupplier.get()method, which may benull, or anyRuntimeExceptionthat an invocation of theOptionalSupplier.get()method throws, includingNoSuchElementExceptionandUnsupportedOperationExceptioninstances that are used to indicate value absence.
I
- ifPresent(Consumer<? super T>) - Method in interface org.microbean.invoke.OptionalSupplier
-
Invokes the
accept(Object)method on the suppliedactionwith the return value of an invocation of theOptionalSupplier.get()method, which may benull, unless theOptionalSupplier.get()method throws either aNoSuchElementExceptionor anUnsupportedOperationException, indicating value absence, in which case no action is taken. - ifPresentOrElse(Consumer<? super T>, Runnable) - Method in interface org.microbean.invoke.OptionalSupplier
-
Invokes the
accept(Object)method on the suppliedpresentActionwith the return value of an invocation of theOptionalSupplier.get()method, which may benull, or, if theOptionalSupplier.get()method indicates value absence by throwing either aNoSuchElementExceptionor anUnsupportedOperationException, invokes therun()method of the suppliedabsentActioninstead. - immutableEmptySortedMap(Comparator<? super K>) - Static method in class org.microbean.invoke.BootstrapMethods
-
Returns an empty, immutable
SortedMap. - immutableEmptySortedSet(Comparator<? super E>) - Static method in class org.microbean.invoke.BootstrapMethods
-
Returns an immutable, empty
SortedSet. - immutableSortedMapOf(Collection<? extends Map.Entry<K, V>>) - Static method in class org.microbean.invoke.BootstrapMethods
- immutableSortedMapOf(Collection<? extends Map.Entry<K, V>>, Comparator<? super K>) - Static method in class org.microbean.invoke.BootstrapMethods
- immutableSortedMapOf(Map<? extends K, ? extends V>) - Static method in class org.microbean.invoke.BootstrapMethods
- immutableSortedMapOf(Map<? extends K, ? extends V>, Comparator<? super K>) - Static method in class org.microbean.invoke.BootstrapMethods
- immutableSortedSetOf(Collection<? extends E>) - Static method in class org.microbean.invoke.BootstrapMethods
-
Given a
Collection, returns aSortedSetrepresenting it that is immutable. - immutableSortedSetOf(Collection<? extends E>, Comparator<? super E>) - Static method in class org.microbean.invoke.BootstrapMethods
-
Given a
Collection, returns aSortedSetrepresenting it that is immutable. - instance() - Static method in class org.microbean.invoke.Absence
-
Returns the sole instance of this class.
N
- NON_DETERMINISTIC - Enum constant in enum class org.microbean.invoke.OptionalSupplier.Determinism
-
An
OptionalSupplier.Determinismindicating an unknown, possibly transitory, determinism or absence.
O
- of() - Static method in interface org.microbean.invoke.OptionalSupplier
-
Invokes
Absence.instance()and returns the result. - of(Supplier<? extends T>) - Static method in interface org.microbean.invoke.OptionalSupplier
-
Returns an
OptionalSupplierrepresenting the suppliedSupplier. - of(Supplier<? extends T>, Supplier<? extends T>) - Static method in interface org.microbean.invoke.OptionalSupplier
-
Returns an
OptionalSupplierthat will, loosely speaking, try the suppliedsupplierfirst, and, if it throws aNoSuchElementExceptionor anUnsupportedOperationExceptionfrom itsSupplier.get()method, will then try the supplieddefaults. - of(OptionalSupplier.Determinism, Supplier<? extends T>) - Static method in interface org.microbean.invoke.OptionalSupplier
-
Returns a new
OptionalSupplierwhoseOptionalSupplier.determinism()method will return the suppliedOptionalSupplier.Determinismand whoseOptionalSupplier.get()method will return the result of invoking theSupplier.get()method on the suppliedsupplier. - of(T) - Static method in class org.microbean.invoke.FixedValueSupplier
-
Returns a
FixedValueSuppliersupplying the supplied value. - of(T) - Static method in interface org.microbean.invoke.OptionalSupplier
-
Returns a new
OptionalSupplierwhoseOptionalSupplier.determinism()method will returnOptionalSupplier.Determinism.PRESENTand whoseOptionalSupplier.get()method will return the suppliedvalue. - optional() - Method in interface org.microbean.invoke.OptionalSupplier
- optional(BiFunction<? super T, ? super RuntimeException, ? extends U>) - Method in interface org.microbean.invoke.OptionalSupplier
-
Invokes the
OptionalSupplier.handle(BiFunction)method, supplying it with the suppliedhandler, supplies its return value to theOptional.ofNullable(Object)method, and returns the result. - optional(Function<? super RuntimeException, ? extends T>) - Method in interface org.microbean.invoke.OptionalSupplier
-
Invokes the
OptionalSupplier.exceptionally(Function)method, supplying it with the suppliedhandler, supplies its return value to theOptional.ofNullable(Object)method, and returns the result. - OptionalSupplier<T> - Interface in org.microbean.invoke
-
A
Supplierwith additional contractual requirements. - OptionalSupplier.Determinism - Enum Class in org.microbean.invoke
-
A token indicating transitory or permanent presence or absence.
- orElse(T) - Method in interface org.microbean.invoke.OptionalSupplier
-
Returns the result of invoking the
OptionalSupplier.get()method, which may benull, or, if theOptionalSupplier.get()method indicates value absence by throwing either aNoSuchElementExceptionor anUnsupportedOperationException, returns the supplied alternate value, which may benull. - orElseGet(Supplier<? extends T>) - Method in interface org.microbean.invoke.OptionalSupplier
-
Returns the result of invoking the
OptionalSupplier.get()method, which may benull, or, if theOptionalSupplier.get()method indicates value absence by throwing either aNoSuchElementExceptionor anUnsupportedOperationException, returns the result of invoking theOptionalSupplier.get()method on the suppliedSupplier, which may benull. - orElseThrow() - Method in interface org.microbean.invoke.OptionalSupplier
-
Returns the result of invoking the
OptionalSupplier.get()method, which may benull. - orElseThrow(Supplier<? extends X>) - Method in interface org.microbean.invoke.OptionalSupplier
-
Returns the result of invoking the
OptionalSupplier.get()method, which may benull, or, if theOptionalSupplier.get()method indicates value absence by throwing either aNoSuchElementExceptionor anUnsupportedOperationException, throws the return value of an invocation of the suppliedSupplier'sget()method. - org.microbean.invoke - module org.microbean.invoke
-
Provides packages related to concepts embodied by the
java.util.functionandjava.lang.invokepackages. - org.microbean.invoke - package org.microbean.invoke
-
Provides classes and interfaces related to concepts embodied by the
java.util.functionandjava.lang.invokepackages.
P
- PRESENT - Enum constant in enum class org.microbean.invoke.OptionalSupplier.Determinism
-
An
OptionalSupplier.Determinismindicating permanent determinism.
S
- set(T) - Method in class org.microbean.invoke.CachingSupplier
-
Sets the value that will be returned forever afterwards by the
CachingSupplier.get()method and returnstrueif and only if the value was previously unset. - stream() - Method in interface org.microbean.invoke.OptionalSupplier
-
Returns the result of invoking the
Stream.of(Object)method on the return value of an invocation of theOptionalSupplier.get()method, which may benull, or, if theOptionalSupplier.get()method indicates value absence by throwing either aNoSuchElementExceptionor anUnsupportedOperationException, returns the result of invoking theStream.empty()method.
T
- toString() - Method in class org.microbean.invoke.CachingSupplier
V
- valueOf(String) - Static method in enum class org.microbean.invoke.OptionalSupplier.Determinism
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class org.microbean.invoke.OptionalSupplier.Determinism
-
Returns an array containing the constants of this enum class, in the order they are declared.
All Classes and Interfaces|All Packages