Class Selectables
java.lang.Object
org.microbean.bean.Selectables
- 
Method SummaryModifier and TypeMethodDescriptionstatic final <C,E extends Ranked> 
 Selectable<C, E> ambiguityReducing(Selectable<C, E> s) Deprecated, for removal: This API element is subject to removal in a future version.static final <C,E> Selectable <C, E> ambiguityReducing(Selectable<C, E> s, Predicate<? super E> p, ToIntFunction<? super E> ranker) Returns aSelectablethat reduces any ambiguity in the results returned by anotherSelectable, considering alternate status and rank.static final Selectable<AttributedType, Bean<?>> typesafeReducing(Collection<? extends Bean<?>> beans, Matcher<? super AttributedType, ? super Id> m) Normalizes the suppliedCollectionofBeans and returns aSelectablefor it and the suppliedMatcher.
- 
Method Details- 
ambiguityReducing@Deprecated(forRemoval=true, since="0.0.19") public static final <C,E extends Ranked> Selectable<C,E> ambiguityReducing(Selectable<C, E> s) Deprecated, for removal: This API element is subject to removal in a future version.Please use theambiguityReducing(Selectable, Predicate, ToIntFunction)method instead.Returns aSelectablethat reduces any ambiguity in the results returned by anotherSelectable, considering alternate status and rank.- Type Parameters:
- C- the criteria type
- E- the element type
- Parameters:
- s- a- Selectable; must not be- null
- Returns:
- a non-nullSelectable
- Throws:
- NullPointerException- if- sis- null
- See Also:
 
- 
ambiguityReducingpublic static final <C,E> Selectable<C,E> ambiguityReducing(Selectable<C, E> s, Predicate<? super E> p, ToIntFunction<? super E> ranker) Returns aSelectablethat reduces any ambiguity in the results returned by anotherSelectable, considering alternate status and rank.- Type Parameters:
- C- the criteria type
- E- the element type
- Parameters:
- s- a- Selectable; must not be- null
- p- a- Predicatethat tests whether an element is an alternate; must not be- null
- ranker- a- ToIntFunctionthat returns a rank for an alternate; a rank of- 0indicates no particular rank; must not be- null
- Returns:
- a non-nullSelectable
- Throws:
- NullPointerException- if any argument is- null
 
- 
typesafeReducingpublic static final Selectable<AttributedType,Bean<?>> typesafeReducing(Collection<? extends Bean<?>> beans, Matcher<? super AttributedType, ? super Id> m) Normalizes the suppliedCollectionofBeans and returns aSelectablefor it and the suppliedMatcher.The Selectabledoes not cache its results.- Parameters:
- beans- a- Collectionof- Beans; must not be- null
- m- an- IdMatcher; must not be- null
- Returns:
- a non-nullSelectable
- Throws:
- NullPointerException- if any argument is- null
- See Also:
 
 
- 
ambiguityReducing(Selectable, Predicate, ToIntFunction)method instead.