public class PathTrie extends Object
| Constructor and Description | 
|---|
PathTrie()
construct a new PathTrie with
 a root node of / 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addPath(String path)
add a path to the path trie 
 | 
void | 
clear()
clear all nodes 
 | 
void | 
deletePath(String path)
delete a path from the trie 
 | 
String | 
findMaxPrefix(String path)
return the largest prefix for the input path. 
 | 
public void addPath(String path)
path - public void deletePath(String path)
path - the path to be deletedpublic String findMaxPrefix(String path)
path - the input pathpublic void clear()
Copyright © 2008–2021 The Apache Software Foundation. All rights reserved.