Uses of Interface
org.microbean.bean.Selectable
-
Uses of Selectable in org.microbean.bean
Classes in org.microbean.bean that implement SelectableModifier and TypeClassDescriptionfinal classMethods in org.microbean.bean that return SelectableModifier and TypeMethodDescriptionstatic final Selectable<AttributedType, Bean<?>> Beans.cachingSelectableOf(Matcher<? super AttributedType, ? super Id> idMatcher, Map<? extends AttributedType, ? extends List<Bean<?>>> selections, Collection<? extends Bean<?>> beans) Returns a newSelectablethat caches its results.static <C,E> Selectable <C, E> Selectable.of()static <C,E> Selectable <C, E> Selectable.of(Collection<? extends E> collection, BiFunction<? super E, ? super C, ? extends Boolean> f) Returns aSelectableusing the suppliedCollectionas its elements, and the suppliedBiFunctionas its selector function.static <C,E> Selectable <C, E> Selectable.ofCaching(Collection<? extends E> collection, BiFunction<? super E, ? super C, ? extends Boolean> f) Returns aSelectableusing the suppliedCollectionas its elements, and the suppliedBiFunctionas its selector function.Methods in org.microbean.bean with parameters of type SelectableModifier and TypeMethodDescriptionstatic <C,E> Reducible <C, E> Reducible.of(Selectable<C, E> selectable, Reducer<C, E> r) 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) static <C,E> Reducible <C, E> Reducible.ofCaching(Selectable<C, E> selectable, Reducer<C, E> r) 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) 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) Returns aReducibleimplementation that uses the suppliedReducerfor its reduction operations and the suppliedcomputeIfAbsentBiFunctionfor its caching implementation.default TReducer.reduce(Selectable<? super C, ? extends T> f, C c) Invokes theReducer.reduce(List, Object, BiFunction)method with the return value of an invocation of theselect(Object)method on the suppliedSelectablesupplied withc, and the suppliedcand a reference to thefail(List, Object)method, and returns the result.default TReducer.reduce(Selectable<? super C, ? extends T> f, C c, BiFunction<? super List<? extends T>, ? super C, ? extends T> failureHandler) Invokes theReducer.reduce(List, Object, BiFunction)method with the return value of an invocation of theselect(Object)method on the suppliedSelectablesupplied withc, and the suppliedcandfailureHandlerarguments, and returns the result.Constructors in org.microbean.bean with parameters of type SelectableModifierConstructorDescriptionBeans(Selectable<AttributedType, Bean<?>> s) Creates a newBeans.Beans(Selectable<AttributedType, Bean<?>> s, Reducible<AttributedType, Bean<?>> r) Creates a newBeans.