T - The content type of each nodepublic class RadixTreeNodeImpl<T> extends Object implements RadixTreeNode<T>
RadixTreeNode interface by storing an
instance of the content and a Collection of child nodes.| Constructor and Description |
|---|
RadixTreeNodeImpl(T[] chain) |
RadixTreeNodeImpl(T content,
Collection<RadixTreeNode<T>> children)
TODO: Is this going to be used?
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChildren(T[] chain) |
Set<RadixTreeNode<T>> |
getChildren() |
T |
getContent() |
void |
setChildren(Set<RadixTreeNode<T>> newChildren) |
void |
setContent(T newContent) |
int |
size() |
String |
toString() |
String |
toStringWithPrefix(String prefix) |
public RadixTreeNodeImpl(T content, Collection<RadixTreeNode<T>> children)
public RadixTreeNodeImpl(T[] chain)
public T getContent()
getContent in interface RadixTreeNode<T>public void setContent(T newContent)
setContent in interface RadixTreeNode<T>public void addChildren(T[] chain)
addChildren in interface RadixTreeNode<T>public Set<RadixTreeNode<T>> getChildren()
getChildren in interface RadixTreeNode<T>public void setChildren(Set<RadixTreeNode<T>> newChildren)
setChildren in interface RadixTreeNode<T>public int size()
size in interface RadixTreeNode<T>public String toStringWithPrefix(String prefix)
toStringWithPrefix in interface RadixTreeNode<T>Copyright © 2020. All rights reserved.