@Environment(value=CLIENT) public class TextSearchableContainer<T> extends IdentifierSearchableContainer<T>
Modifier and Type | Class and Description |
---|---|
(package private) static class |
TextSearchableContainer.Iterator<T> |
Modifier and Type | Field and Description |
---|---|
protected SuffixArray<T> |
byText |
private Function<T,Stream<String>> |
textFinder |
byNamespace, byPath
Constructor and Description |
---|
TextSearchableContainer(Function<T,Stream<String>> function,
Function<T,Stream<Identifier>> function2) |
Modifier and Type | Method and Description |
---|---|
List<T> |
findAll(String text) |
protected void |
index(T t) |
void |
reload() |
add, clear, compare
protected SuffixArray<T> byText
public void reload()
reload
in interface SearchableContainer<T>
reload
in class IdentifierSearchableContainer<T>
protected void index(T t)
index
in class IdentifierSearchableContainer<T>
public List<T> findAll(String text)
findAll
in interface Searchable<T>
findAll
in class IdentifierSearchableContainer<T>