Package org.opennms.core.collections
Class RadixTreeNodeImpl<T>
- java.lang.Object
-
- org.opennms.core.collections.RadixTreeNodeImpl<T>
-
- Type Parameters:
T- The content type of each node
- All Implemented Interfaces:
RadixTreeNode<T>
- Direct Known Subclasses:
RadixTreeImpl
public class RadixTreeNodeImpl<T> extends Object implements RadixTreeNode<T>
This class implements theRadixTreeNodeinterface by storing an instance of the content and aCollectionof child nodes.- Author:
- Seth
-
-
Constructor Summary
Constructors Constructor Description RadixTreeNodeImpl(T[] chain)RadixTreeNodeImpl(T content, Collection<RadixTreeNode<T>> children)TODO: Is this going to be used?
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChildren(T[] chain)Set<RadixTreeNode<T>>getChildren()TgetContent()voidsetChildren(Set<RadixTreeNode<T>> newChildren)voidsetContent(T newContent)intsize()StringtoString()StringtoStringWithPrefix(String prefix)
-
-
-
Constructor Detail
-
RadixTreeNodeImpl
public RadixTreeNodeImpl(T content, Collection<RadixTreeNode<T>> children)
TODO: Is this going to be used?
-
RadixTreeNodeImpl
public RadixTreeNodeImpl(T[] chain)
-
-
Method Detail
-
getContent
public T getContent()
- Specified by:
getContentin interfaceRadixTreeNode<T>
-
setContent
public void setContent(T newContent)
- Specified by:
setContentin interfaceRadixTreeNode<T>
-
addChildren
public void addChildren(T[] chain)
- Specified by:
addChildrenin interfaceRadixTreeNode<T>
-
getChildren
public Set<RadixTreeNode<T>> getChildren()
- Specified by:
getChildrenin interfaceRadixTreeNode<T>
-
setChildren
public void setChildren(Set<RadixTreeNode<T>> newChildren)
- Specified by:
setChildrenin interfaceRadixTreeNode<T>
-
size
public int size()
- Specified by:
sizein interfaceRadixTreeNode<T>
-
toStringWithPrefix
public String toStringWithPrefix(String prefix)
- Specified by:
toStringWithPrefixin interfaceRadixTreeNode<T>
-
-