Type
- The type of elements. The elements are instance of SortedTree too.
Therewith the SortedTree consists of nodes of type SortedTree.public interface SortedTree<Type extends SortedTree<Type>>
Modifier and Type | Method and Description |
---|---|
Type |
getChild(java.lang.String sKey)
Searches the first child with given key from the given node this.
|
Type |
getParent() |
java.util.Iterator<Type> |
iterChildren()
Returns an iterator through the list of all children of the node.
|
java.util.Iterator<Type> |
iterChildren(java.lang.String sKey)
Returns an iterator through the list of all children with the given key.
|
java.util.List<Type> |
listChildren()
Returns a List of all children of the node.
|
java.util.List<Type> |
listChildren(java.lang.String sKey)
Returns a List of all children with the given key.
|
Type getParent()
Type getChild(java.lang.String sKey)
sKey
- The key of the demanded child. The implementation may have extra possibilities in addressing children
with strings. The sKey can be representing more as a simple string as a attribute in children.
It may be comparable with the ability of XPATH in XML.
But it will be a feature of Implementation and is not defined as a basic feature of this interface.
java.util.Iterator<Type> iterChildren()
java.util.Iterator<Type> iterChildren(java.lang.String sKey)
sKey
- The key of the demanded child. The implementation may have extra possibilities, see getChild(String).java.util.List<Type> listChildren()
java.util.List<Type> listChildren(java.lang.String sKey)
sKey
- The key of the demanded child. The implementation may have extra possibilities, see getChild(String).