Index
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 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
ClassDesc
representing theBootstrapMethods
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 aCharSequence
representing a "content hashable" view of the implementation.
D
- determinism() - Method in class org.microbean.invoke.Absence
-
Returns
OptionalSupplier.Determinism.ABSENT
when invoked. - determinism() - Method in class org.microbean.invoke.CachingSupplier
-
Returns an
OptionalSupplier.Determinism
suitable for thisCachingSupplier
. - determinism() - Method in class org.microbean.invoke.FixedValueSupplier
-
Returns
OptionalSupplier.Determinism.PRESENT
when invoked. - determinism() - Method in interface org.microbean.invoke.OptionalSupplier
-
Returns an
OptionalSupplier.Determinism
denoting the presence of values returned by thisOptionalSupplier
'sget()
method. - deterministic() - Method in enum class org.microbean.invoke.OptionalSupplier.Determinism
-
Returns
true
if the presence or absence denoted by thisOptionalSupplier.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 aRuntimeException
does not occur, or the result of invoking theapply(Object)
method on the suppliedhandler
with anyRuntimeException
that does occur, includingNoSuchElementException
andUnsupportedOperationException
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 theSupplier
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 suppliedhandler
, supplying it with the result of an invocation of theOptionalSupplier.get()
method, which may benull
, or anyRuntimeException
that an invocation of theOptionalSupplier.get()
method throws, includingNoSuchElementException
andUnsupportedOperationException
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 suppliedaction
with the return value of an invocation of theOptionalSupplier.get()
method, which may benull
, unless theOptionalSupplier.get()
method throws either aNoSuchElementException
or 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 suppliedpresentAction
with the return value of an invocation of theOptionalSupplier.get()
method, which may benull
, or, if theOptionalSupplier.get()
method indicates value absence by throwing either aNoSuchElementException
or anUnsupportedOperationException
, invokes therun()
method of the suppliedabsentAction
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
- 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 aSortedSet
representing it that is immutable. - immutableSortedSetOf(Collection<? extends E>, Comparator<? super E>) - Static method in class org.microbean.invoke.BootstrapMethods
-
Given a
Collection
, returns aSortedSet
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 suppliedSupplier
. - of(Supplier<? extends T>, Supplier<? extends T>) - Static method in interface org.microbean.invoke.OptionalSupplier
-
Returns an
OptionalSupplier
that will, loosely speaking, try the suppliedsupplier
first, and, if it throws aNoSuchElementException
or anUnsupportedOperationException
from 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
OptionalSupplier
whoseOptionalSupplier.determinism()
method will return the suppliedOptionalSupplier.Determinism
and 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
FixedValueSupplier
supplying the supplied value. - of(T) - Static method in interface org.microbean.invoke.OptionalSupplier
-
Returns a new
OptionalSupplier
whoseOptionalSupplier.determinism()
method will returnOptionalSupplier.Determinism.PRESENT
and 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
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 benull
, or, if theOptionalSupplier.get()
method indicates value absence by throwing either aNoSuchElementException
or 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 aNoSuchElementException
or 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 aNoSuchElementException
or 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.function
andjava.lang.invoke
packages. - org.microbean.invoke - package org.microbean.invoke
-
Provides classes and interfaces related to concepts embodied by the
java.util.function
andjava.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 returnstrue
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 theOptionalSupplier.get()
method, which may benull
, or, if theOptionalSupplier.get()
method indicates value absence by throwing either aNoSuchElementException
or 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