matches

public static List<T> matches<T>(Collection<T> objects, Matcher<? super T> matcher)(source)

Returns a list of all objects in the given collection matched by the given matcher sorted by match scores in descending order.

Return

the list of matched objects

Parameters

objects

the collection of objects

matcher

the matcher

<T>

the type of objects