Uses of Interface
org.microbean.bean.Selectable
-
Uses of Selectable in org.microbean.bean
Methods in org.microbean.bean that return SelectableModifier and TypeMethodDescriptionstatic final <C,
E extends Ranked>
Selectable<C, E> Selectables.ambiguityReducing
(Selectable<C, E> s) Returns aSelectable
that reduces any ambiguity in the results returned by anotherSelectable
, considering alternate status and rank.static <C,
E> Selectable <C, E> Selectables.caching
(Selectable<C, E> selectable) Returns aSelectable
that caches its results.static <C,
E> Selectable <C, E> Selectables.caching
(Selectable<C, E> selectable, BiFunction<? super C, Function<? super C, ? extends List<E>>, ? extends List<E>> f) Returns aSelectable
that caches its results.static final <C,
E> Selectable <C, E> Selectables.empty()
static <C,
E> Selectable <C, E> Selectables.filtering
(Collection<? extends E> collection, BiFunction<? super E, ? super C, ? extends Boolean> f) Returns aSelectable
using the suppliedCollection
as its elements, and the suppliedBiFunction
as its selector function.static final Selectable
<AttributedType, Bean<?>> Selectables.typesafeReducing
(Collection<? extends Bean<?>> beans, Matcher<? super AttributedType, ? super Id> m) Normalizes the suppliedCollection
ofBean
s and returns aSelectable
for it and the suppliedMatcher
.Methods in org.microbean.bean with parameters of type SelectableModifier and TypeMethodDescriptionstatic final <C,
E extends Ranked>
Selectable<C, E> Selectables.ambiguityReducing
(Selectable<C, E> s) Returns aSelectable
that reduces any ambiguity in the results returned by anotherSelectable
, considering alternate status and rank.static <C,
E> Selectable <C, E> Selectables.caching
(Selectable<C, E> selectable) Returns aSelectable
that caches its results.static <C,
E> Selectable <C, E> Selectables.caching
(Selectable<C, E> selectable, BiFunction<? super C, Function<? super C, ? extends List<E>>, ? extends List<E>> f) Returns aSelectable
that caches its results.static <C,
E> Reducible <C, E> Reducible.of
(Selectable<C, E> selectable, Reducer<C, E> r) Deprecated.Calls theReducible.of(Selectable, Reducer, BiFunction)
method with the suppliedselectable
, the suppliedr
, and a reference to theReducer.fail(List, Object)
method, and returns the result.static <C,
E> Reducible <C, E> Reducible.of
(Selectable<C, E> selectable, Reducer<C, E> r, BiFunction<? super List<? extends E>, ? super C, ? extends E> failureHandler) Deprecated.static <C,
E> Reducible <C, E> Reducible.ofCaching
(Selectable<C, E> selectable, Reducer<C, E> r) Deprecated.Calls theReducible.ofCaching(Selectable, Reducer, BiFunction)
method with the suppliedselectable
, the suppliedr
, the suppliedfailureHandler
, and a reference to theReducer.fail(List, Object)
method, and returns its result.static <C,
E> Reducible <C, E> Reducible.ofCaching
(Selectable<C, E> selectable, Reducer<C, E> r, BiFunction<? super List<? extends E>, ? super C, ? extends E> fh) Deprecated.Calls theReducible.ofCaching(Selectable, Reducer, BiFunction, BiFunction)
method with the suppliedselectable
, the suppliedr
, the suppliedfh
, and a reference to thecomputeIfAbsent(Object, Function)
method of a newConcurrentHashMap
, and returns its result.static <C,
E> Reducible <C, E> Reducible.ofCaching
(Selectable<C, E> selectable, Reducer<C, E> r, BiFunction<? super List<? extends E>, ? super C, ? extends E> fh, BiFunction<? super C, Function<C, E>, ? extends E> cache) Deprecated.Returns aReducible
implementation that uses the suppliedReducer
for its reduction operations and the suppliedcomputeIfAbsent
BiFunction
for its caching implementation.default T
Reducer.reduce
(Selectable<? super C, ? extends T> f, C c) Deprecated.Invokes theReducer.reduce(List, Object, BiFunction)
method with the return value of an invocation of theselect(Object)
method on the suppliedSelectable
supplied withc
, and the suppliedc
and a reference to thefail(List, Object)
method, and returns the result.default T
Reducer.reduce
(Selectable<? super C, ? extends T> f, C c, BiFunction<? super List<? extends T>, ? super C, ? extends T> failureHandler) Deprecated.Invokes theReducer.reduce(List, Object, BiFunction)
method with the return value of an invocation of theselect(Object)
method on the suppliedSelectable
supplied withc
, and the suppliedc
andfailureHandler
arguments, and returns the result.