public class TST<Value> extends Object
| Constructor and Description |
|---|
TST() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(String key)
Is string key in the symbol table?
|
Value |
get(String key) |
Iterable<String> |
keys() |
String |
longestPrefixOf(String s)
Find and return longest prefix of s in TST
|
static void |
main(String[] args) |
Iterable<String> |
prefixMatch(String prefix) |
void |
put(String s,
Value val)
Insert string s into the symbol table.
|
int |
size() |
Iterable<String> |
wildcardMatch(String pat) |
Copyright © 2014. All Rights Reserved.