|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectNode<CONTENT,CHILD>
public abstract class Node<CONTENT,CHILD>
All nodes must subclass this class.
The type parameter CONTENT is (half of) the type of the objects stored in this
node: they are Pair
Constructor Summary
Node(CONTENT left,
CONTENT right)
Node(Pair<CONTENT,CONTENT> userObject)
Method Summary
abstract voidaccept(Visitor v)
voidadd(CHILD newChild)
Iterator<CHILD>children()
CONTENTgetUserLeft()
Pair<CONTENT,CONTENT>getUserObject()
CONTENTgetUserRight()
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail
Node
public Node(Pair<CONTENT,CONTENT> userObject)
Node
public Node(CONTENT left,
CONTENT right)
Method Detail
add
public void add(CHILD newChild)
children
public Iterator<CHILD> children()
getUserObject
public Pair<CONTENT,CONTENT> getUserObject()
getUserLeft
public CONTENT getUserLeft()
getUserRight
public CONTENT getUserRight()
accept
public abstract void accept(Visitor v)
Overview
Package
Class
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD