org.squashtest.csp.tm.domain.library.structures
Class LibraryTree.TreeNodePair

java.lang.Object
  extended by org.squashtest.csp.tm.domain.library.structures.LibraryTree.TreeNodePair
Enclosing class:
LibraryTree<T extends TreeNode<T>>

public class LibraryTree.TreeNodePair
extends Object

A TreeNodePair is a scaffolding class which is mainly used when initializing a tree. It simply pairs a child treeNode with the key of its parent. A child node having a null parent will be considered as a root node.

Author:
bsiri

Constructor Summary
LibraryTree.TreeNodePair()
           
LibraryTree.TreeNodePair(Long parentKey, T child)
           
 
Method Summary
 T getChild()
           
 Long getParentKey()
           
 void setChild(T child)
           
 void setParentKey(Long parentKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LibraryTree.TreeNodePair

public LibraryTree.TreeNodePair()

LibraryTree.TreeNodePair

public LibraryTree.TreeNodePair(Long parentKey,
                                T child)
Method Detail

getParentKey

public Long getParentKey()

setParentKey

public void setParentKey(Long parentKey)

getChild

public T getChild()

setChild

public void setChild(T child)


Copyright © 2010-2012 Squashtest TM, Squashtest.org. All Rights Reserved.