public class SearchTree<T> extends SearchTreeReloadable<T>
Modifier and Type | Class and Description |
---|---|
(package private) static class |
SearchTree.MergingIterator<T> |
SearchTreeReloadable.JoinedIterator<T>
Modifier and Type | Field and Description |
---|---|
protected SuffixArray<T> |
byName |
private java.util.function.Function<T,java.util.stream.Stream<java.lang.String>> |
nameFunc |
namespaceList, pathList
Constructor and Description |
---|
SearchTree(java.util.function.Function<T,java.util.stream.Stream<java.lang.String>> nameFuncIn,
java.util.function.Function<T,java.util.stream.Stream<ResourceLocation>> idFuncIn) |
Modifier and Type | Method and Description |
---|---|
protected void |
index(T element) |
void |
recalculate() |
java.util.List<T> |
search(java.lang.String searchText) |
clear, compare, func_217872_a
protected SuffixArray<T> byName
private final java.util.function.Function<T,java.util.stream.Stream<java.lang.String>> nameFunc
public SearchTree(java.util.function.Function<T,java.util.stream.Stream<java.lang.String>> nameFuncIn, java.util.function.Function<T,java.util.stream.Stream<ResourceLocation>> idFuncIn)
public void recalculate()
recalculate
in interface IMutableSearchTree<T>
recalculate
in class SearchTreeReloadable<T>
protected void index(T element)
index
in class SearchTreeReloadable<T>
public java.util.List<T> search(java.lang.String searchText)
search
in interface ISearchTree<T>
search
in class SearchTreeReloadable<T>