Uses of Interface
org.microbean.bean.Reducible
-
Uses of Reducible in org.microbean.bean
Classes in org.microbean.bean that implement ReducibleModifier and TypeClassDescriptionfinal class
Methods in org.microbean.bean that return ReducibleModifier and TypeMethodDescriptionstatic <C,
E> Reducible <C, E> Reducible.of
(Selectable<C, E> selectable, Reducer<C, E> r) Calls theof(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) static <C,
E> Reducible <C, E> Reducible.ofCaching
(Selectable<C, E> selectable, Reducer<C, E> r) Calls theofCaching(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) Calls theofCaching(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) Returns aReducible
implementation that uses the suppliedReducer
for its reduction operations and the suppliedcomputeIfAbsent
BiFunction
for its caching implementation.Constructors in org.microbean.bean with parameters of type ReducibleModifierConstructorDescriptionBeans
(Selectable<AttributedType, Bean<?>> s, Reducible<AttributedType, Bean<?>> r) Creates a newBeans
.