Package io.github.jonestimd.swing.filter
Interface FilterParser<T>
-
- Type Parameters:
T- the parameter type of the generated predicate.
- All Known Implementing Classes:
BasicFilterParser
public interface FilterParser<T>An interface for parsing the text of aFilterSourceand creating aPredicate.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<java.lang.String>getTerms()Get the individual terms of the parsed predicate.java.util.function.Predicate<T>parse(FilterSource source)Parse the filter text.
-
-
-
Method Detail
-
parse
java.util.function.Predicate<T> parse(FilterSource source)
Parse the filter text.- Returns:
- a predicate matching the parsed filter text
-
getTerms
java.util.List<java.lang.String> getTerms()
Get the individual terms of the parsed predicate.
-
-