public class SearchEngine<T>
extends java.lang.Object
| Constructor and Description |
|---|
SearchEngine(java.util.function.Supplier<? extends java.lang.Iterable<T>> supplier,
java.util.function.Function<T,java.lang.String> toStringFunction) |
| Modifier and Type | Method and Description |
|---|---|
SearchResult<T> |
search(ResultFilter filter,
java.lang.String query)
Searches for objects in the supplier that match the given query.
|
public SearchResult<T> search(ResultFilter filter, java.lang.String query)
OR to combine two keywords with a binary or operatorfilter - The filter that should be applied to the resultsquery - The query to search for