de.dante.extex.typesetter.type.noad
Class NoadList

java.lang.Object
  extended byde.dante.extex.typesetter.type.noad.NoadList

public class NoadList
extends java.lang.Object

This class provides a container for a list of Noads.

Version:
$Revision: 1.4 $
Author:
Gerd Neugebauer

Constructor Summary
NoadList()
          Creates a new object containing no elements.
 
Method Summary
 void add(Noad noad)
          Add an arbitrary noad to the list.
 boolean empty()
          Test whether the node list is empty.
 Noad get(int index)
          Getter for a node at a given position.
 Noad remove(int index)
          Remove an element at a given position.
 int size()
          Return the size of the MathList.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoadList

public NoadList()
Creates a new object containing no elements.

Method Detail

add

public void add(Noad noad)
Add an arbitrary noad to the list.

Parameters:
noad - the noad to add

empty

public boolean empty()
Test whether the node list is empty.

Returns:
true, if the list ist emtpy, otherwise false.

get

public Noad get(int index)
Getter for a node at a given position.

Parameters:
index - the position
Returns:
the node at position index of null if index is out of bounds

remove

public Noad remove(int index)
Remove an element at a given position.

Parameters:
index - the position
Returns:
the element previously located at position index

size

public int size()
Return the size of the MathList.

Returns:
the size of the MathList