Package org.elasticsearch.core
Class Glob
java.lang.Object
org.elasticsearch.core.Glob
Utility class for glob-like matching
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Glob
public Glob()
-
-
Method Details
-
globMatch
Match a String against the given pattern, supporting the following simple pattern styles: "xxx*", "*xxx", "*xxx*" and "xxx*yyy" matches (with an arbitrary number of pattern parts), as well as direct equality.- Parameters:
pattern
- the pattern to match againststr
- the String to match- Returns:
- whether the String matches the given pattern
-