chen-w
7/16/2017 - 1:30 AM

tree

tree

// create a tree node
TreeNode root = new TreeNode(blabla);

// return all children
children()

// return true if the receiver allows chilren
getAllowsChilren()

// return the child TreeNode at index childIndex
getChildAt(int childIndex)

// return the number of children TreeNode constains
getChildCount()

// return index of node in the receivers children
getIndex(TreeNode node)

// Return parent
getParent()

// check leaf
isLeaf()