Class WildcardPatternsMatcher
java.lang.Object
io.jmix.search.index.mapping.processor.impl.dynattr.WildcardPatternsMatcher
Provides functionality for resolving patterns and identifying
matching elements within a collection based on wildcard patterns. It supports processing of string
patterns that may include wildcards "*" for flexible and dynamic matching.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Collection<T>getMatchingElements(Map<String, T> namedElements, List<String> patterns) Returns a collection of elements which names match any pattern of the given patterns list.protected booleangetMatchingElementsForSingleNamedElement(String elementName, List<String> patterns) protected static booleanhasWildCard(String patternForCheck)
-
Constructor Details
-
WildcardPatternsMatcher
public WildcardPatternsMatcher()
-
-
Method Details
-
getMatchingElements
Returns a collection of elements which names match any pattern of the given patterns list. Each pattern can contain one or more wildcard symbols "*".- Type Parameters:
T- the type of named elements.- Parameters:
namedElements- the map with the elements and its namespatterns- the list of patterns.- Returns:
- the list of filtered elements
-
getMatchingElementsForSingleNamedElement
-
hasWildCard
-