com.atlassian.greenhopper.service.hierarchy
Class TreeNode<T>

java.lang.Object
  extended by com.atlassian.greenhopper.service.hierarchy.TreeNode<T>

public class TreeNode<T>
extends java.lang.Object

A thin wrapper around a payload data object that is to be organised into a tree structure.


Constructor Summary
TreeNode(T data)
           
 
Method Summary
 boolean equals(java.lang.Object that)
           
 java.util.List<TreeNode<T>> getChildren()
           
 java.util.List<TreeNode<T>> getChildren(TreeNodeComparator<T> comp)
           
 T getData()
           
 int hashCode()
           
 void setChildren(java.util.List<TreeNode<T>> children)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeNode

public TreeNode(T data)
Method Detail

getData

public T getData()

getChildren

public java.util.List<TreeNode<T>> getChildren()

getChildren

public java.util.List<TreeNode<T>> getChildren(TreeNodeComparator<T> comp)

setChildren

public void setChildren(java.util.List<TreeNode<T>> children)

equals

public boolean equals(java.lang.Object that)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2007-2011 Atlassian. All Rights Reserved.