@Environment(value=CLIENT) public class IdentifierSearchableContainer<T> extends Object implements SearchableContainer<T>
Modifier and Type | Class and Description |
---|---|
static class |
IdentifierSearchableContainer.Iterator<T> |
Modifier and Type | Field and Description |
---|---|
protected SuffixArray<T> |
byNamespace |
protected SuffixArray<T> |
byPath |
private List<T> |
entries |
private it.unimi.dsi.fastutil.objects.Object2IntMap<T> |
entryIds |
private Function<T,Stream<Identifier>> |
identifierFinder |
Constructor and Description |
---|
IdentifierSearchableContainer(Function<T,Stream<Identifier>> function) |
protected SuffixArray<T> byNamespace
protected SuffixArray<T> byPath
private final Function<T,Stream<Identifier>> identifierFinder
private final it.unimi.dsi.fastutil.objects.Object2IntMap<T> entryIds
public IdentifierSearchableContainer(Function<T,Stream<Identifier>> function)
public void reload()
reload
in interface SearchableContainer<T>
public void add(T t)
add
in interface SearchableContainer<T>
public void clear()
clear
in interface SearchableContainer<T>
protected void index(T t)