| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
PathTrie.Builder<T> |
add(java.lang.String path,
T value)
Adds a path to the trie.
|
PathTrie<T> |
build() |
T |
get(java.lang.String path)
Gets a path from the trie being built.
|
public PathTrie.Builder<T> add(java.lang.String path, T value)
java.lang.IllegalArgumentException - if the path cannot be added to the triejava.lang.NullPointerException - if either path or value are nullpublic T get(java.lang.String path)
java.lang.IllegalArgumentException - if the path syntax is invalidjava.lang.NullPointerException - if path is null