Index

A B C D E F G H I N O P S T V 
All Classes and Interfaces|All Packages

A

Absence<T> - Class in org.microbean.invoke
An OptionalSupplier implementation that indicates permanent absence.
ABSENT - Enum constant in enum class org.microbean.invoke.OptionalSupplier.Determinism
An OptionalSupplier.Determinism indicating 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 OptionalSupplier that computes the value it will return from its CachingSupplier.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 ClassDesc representing the BootstrapMethods class.
ConstantDescs - Class in org.microbean.invoke
A utility class containing various ClassDesc constants.
ContentHashable - Interface in org.microbean.invoke
An interface whose implementations can return a CharSequence for content-based hashing.
contentHashInput() - Method in interface org.microbean.invoke.ContentHashable
Returns an Optional whose content is a CharSequence representing a "content hashable" view of the implementation.

D

determinism() - Method in class org.microbean.invoke.Absence
determinism() - Method in class org.microbean.invoke.CachingSupplier
Returns an OptionalSupplier.Determinism suitable for this CachingSupplier.
determinism() - Method in class org.microbean.invoke.FixedValueSupplier
determinism() - Method in interface org.microbean.invoke.OptionalSupplier
Returns an OptionalSupplier.Determinism denoting the presence of values returned by this OptionalSupplier's get() method.
deterministic() - Method in enum class org.microbean.invoke.OptionalSupplier.Determinism
Returns true if the presence or absence denoted by this OptionalSupplier.Determinism is deterministic.
DETERMINISTIC - Enum constant in enum class org.microbean.invoke.OptionalSupplier.Determinism
An OptionalSupplier.Determinism indicating 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 a RuntimeException does not occur, or the result of invoking the apply(Object) method on the supplied handler with any RuntimeException that does occur, including NoSuchElementException and UnsupportedOperationException instances 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 OptionalSupplier implementation that supplies a fixed value.

G

get() - Method in class org.microbean.invoke.Absence
Throws a NoSuchElementException when invoked.
get() - Method in class org.microbean.invoke.CachingSupplier
Returns the value this CachingSupplier will forever supply, computing it if necessary with the first invocation by using the Supplier supplied 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 supplied handler, supplying it with the result of an invocation of the OptionalSupplier.get() method, which may be null, or any RuntimeException that an invocation of the OptionalSupplier.get() method throws, including NoSuchElementException and UnsupportedOperationException instances 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 supplied action with the return value of an invocation of the OptionalSupplier.get() method, which may be null, unless the OptionalSupplier.get() method throws either a NoSuchElementException or an UnsupportedOperationException, 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 supplied presentAction with the return value of an invocation of the OptionalSupplier.get() method, which may be null, or, if the OptionalSupplier.get() method indicates value absence by throwing either a NoSuchElementException or an UnsupportedOperationException, invokes the run() method of the supplied absentAction instead.
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
Given a Collection of Map.Entry instances, returns a SortedMap representing it that is immutable.
immutableSortedMapOf(Collection<? extends Map.Entry<K, V>>, Comparator<? super K>) - Static method in class org.microbean.invoke.BootstrapMethods
Given a Collection of Map.Entry instances, returns a SortedMap representing it that is immutable.
immutableSortedMapOf(Map<? extends K, ? extends V>) - Static method in class org.microbean.invoke.BootstrapMethods
Given a Map, returns a SortedMap representing it that is immutable.
immutableSortedMapOf(Map<? extends K, ? extends V>, Comparator<? super K>) - Static method in class org.microbean.invoke.BootstrapMethods
Given a Map or a SortedMap, returns a SortedMap representing it that is immutable.
immutableSortedSetOf(Collection<? extends E>) - Static method in class org.microbean.invoke.BootstrapMethods
Given a Collection, returns a SortedSet representing it that is immutable.
immutableSortedSetOf(Collection<? extends E>, Comparator<? super E>) - Static method in class org.microbean.invoke.BootstrapMethods
Given a Collection, returns a SortedSet representing 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.Determinism indicating 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 OptionalSupplier representing the supplied Supplier.
of(Supplier<? extends T>, Supplier<? extends T>) - Static method in interface org.microbean.invoke.OptionalSupplier
Returns an OptionalSupplier that will, loosely speaking, try the supplied supplier first, and, if it throws a NoSuchElementException or an UnsupportedOperationException from its Supplier.get() method, will then try the supplied defaults.
of(OptionalSupplier.Determinism, Supplier<? extends T>) - Static method in interface org.microbean.invoke.OptionalSupplier
Returns a new OptionalSupplier whose OptionalSupplier.determinism() method will return the supplied OptionalSupplier.Determinism and whose OptionalSupplier.get() method will return the result of invoking the Supplier.get() method on the supplied supplier.
of(T) - Static method in class org.microbean.invoke.FixedValueSupplier
Returns a FixedValueSupplier supplying the supplied value.
of(T) - Static method in interface org.microbean.invoke.OptionalSupplier
Returns a new OptionalSupplier whose OptionalSupplier.determinism() method will return OptionalSupplier.Determinism.PRESENT and whose OptionalSupplier.get() method will return the supplied value.
optional() - Method in interface org.microbean.invoke.OptionalSupplier
Returns a non-null but possibly empty Optional representing this OptionalSupplier's value.
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 supplied handler, supplies its return value to the Optional.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 supplied handler, supplies its return value to the Optional.ofNullable(Object) method, and returns the result.
OptionalSupplier<T> - Interface in org.microbean.invoke
A Supplier with 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 be null, or, if the OptionalSupplier.get() method indicates value absence by throwing either a NoSuchElementException or an UnsupportedOperationException, returns the supplied alternate value, which may be null.
orElseGet(Supplier<? extends T>) - Method in interface org.microbean.invoke.OptionalSupplier
Returns the result of invoking the OptionalSupplier.get() method, which may be null, or, if the OptionalSupplier.get() method indicates value absence by throwing either a NoSuchElementException or an UnsupportedOperationException, returns the result of invoking the OptionalSupplier.get() method on the supplied Supplier, which may be null.
orElseThrow() - Method in interface org.microbean.invoke.OptionalSupplier
Returns the result of invoking the OptionalSupplier.get() method, which may be null.
orElseThrow(Supplier<? extends X>) - Method in interface org.microbean.invoke.OptionalSupplier
Returns the result of invoking the OptionalSupplier.get() method, which may be null, or, if the OptionalSupplier.get() method indicates value absence by throwing either a NoSuchElementException or an UnsupportedOperationException, throws the return value of an invocation of the supplied Supplier's get() method.
org.microbean.invoke - module org.microbean.invoke
Provides packages related to concepts embodied by the java.util.function and java.lang.invoke packages.
org.microbean.invoke - package org.microbean.invoke
Provides classes and interfaces related to concepts embodied by the java.util.function and java.lang.invoke packages.

P

PRESENT - Enum constant in enum class org.microbean.invoke.OptionalSupplier.Determinism
An OptionalSupplier.Determinism indicating 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 returns true if 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 the OptionalSupplier.get() method, which may be null, or, if the OptionalSupplier.get() method indicates value absence by throwing either a NoSuchElementException or an UnsupportedOperationException, returns the result of invoking the Stream.empty() method.

T

toString() - Method in class org.microbean.invoke.CachingSupplier
Returns a non-null String representation of this 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.
A B C D E F G H I N O P S T V 
All Classes and Interfaces|All Packages