V
- value type
See @see Graphvizpublic class PatriciaTrieFormatter<V> extends Object
PatriciaTrie
to dot format for debugging, inspection, etc.Constructor and Description |
---|
PatriciaTrieFormatter()
Constructor
|
Modifier and Type | Method and Description |
---|---|
String |
format(PatriciaTrie<V> trie)
Format trie
|
String |
format(PatriciaTrie<V> trie,
boolean formatBitString)
Format trie
|
void |
format(PatriciaTrie<V> trie,
File file)
Format trie and write to file
|
void |
format(PatriciaTrie<V> trie,
File file,
boolean formatBitString)
Format trie and write to file
|
public String format(PatriciaTrie<V> trie)
trie
- trie to formatpublic String format(PatriciaTrie<V> trie, boolean formatBitString)
trie
- trie to formatformatBitString
- true if the bits for this key should be included in the nodepublic void format(PatriciaTrie<V> trie, File file) throws FileNotFoundException
trie
- trie to formatfile
- file to write toFileNotFoundException
- if the file exists but is a directory rather than a regular file,
does not exist but cannot be created, or cannot be opened for any other reasonpublic void format(PatriciaTrie<V> trie, File file, boolean formatBitString) throws FileNotFoundException
trie
- trie to formatfile
- file to write toformatBitString
- true if the bits for this key should be included in the nodeFileNotFoundException
- if the file exists but is a directory rather than a regular file,
does not exist but cannot be created, or cannot be opened for any other reasonCopyright © 2020. All rights reserved.