org.omnaest.utils.structure.hierarchy.tree
Interface TreeNode<M>

Type Parameters:
M - model of the TreeNode (Does not have to match the model of the surrounding Tree)
All Known Subinterfaces:
ObjectTreeNode
All Known Implementing Classes:
ObjectToTreeNodeAdapter

public interface TreeNode<M>

Representation of a single node of a Tree. A TreeNode will hold references on its children and a data model.

Author:
Omnaest

Method Summary
 List<TreeNode<M>> getChildrenList()
          Returns the List of references to the children of the current TreeNode
 M getModel()
          Returns the data model which belongs to the current TreeNode
 

Method Detail

getModel

M getModel()
Returns the data model which belongs to the current TreeNode

Returns:

getChildrenList

List<TreeNode<M>> getChildrenList()
Returns the List of references to the children of the current TreeNode

Returns:


Copyright © 2013. All Rights Reserved.