org.objectweb.telosys.common.data
Class TreeNodeList

java.lang.Object
  extended byorg.objectweb.telosys.common.data.TreeNodeList
All Implemented Interfaces:
java.io.Serializable

public class TreeNodeList
extends java.lang.Object
implements java.io.Serializable

Generic TreeNodeList : list of TreeNodes

See Also:
Serialized Form

Constructor Summary
TreeNodeList()
          Constructs a new TreeNodeList
 
Method Summary
 TreeNode get(int index)
          Returns the node located at the given index
 boolean isEmpty()
          Returns 'true' if this list contains no elements
 java.util.Iterator iterator()
          Returns an iterator over the elements in this list in proper sequence
 int size()
          Returns the number of elements in this list.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TreeNodeList

public TreeNodeList()
Constructs a new TreeNodeList

Method Detail

iterator

public java.util.Iterator iterator()
Returns an iterator over the elements in this list in proper sequence

Returns:
the iterator

size

public int size()
Returns the number of elements in this list.

Returns:

isEmpty

public boolean isEmpty()
Returns 'true' if this list contains no elements

Returns:

get

public TreeNode get(int index)
Returns the node located at the given index

Parameters:
index -
Returns:
the node or null if no node at this index

toString

public java.lang.String toString()