Package edu.wpi.grip.ui.util
Class SearchUtility
- java.lang.Object
-
- edu.wpi.grip.ui.util.SearchUtility
-
public final class SearchUtility extends java.lang.Object
Utility for fuzzy text searching.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
fuzzyContains(java.lang.String text, java.lang.String query)
Returns true if query if approximately a substring of text, not taking into account capitalization, whitespace, or minor typos.
-
-
-
Method Detail
-
fuzzyContains
public static boolean fuzzyContains(java.lang.String text, java.lang.String query)
Returns true if query if approximately a substring of text, not taking into account capitalization, whitespace, or minor typos.- Parameters:
text
- The text to search.query
- The text to use as a query.
-
-