vote
Class NodeList

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.ArrayList
                    |
                    +--vote.NodeList
All Implemented Interfaces:
Cloneable, Collection, List, RandomAccess, Serializable

public class NodeList
extends ArrayList

This class represents a list of node. It could be arguments in a function call or Test Set.

Author:
P. URSO
See Also:
Node, Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
NodeList()
           
 
Method Summary
 boolean contains(vote.Node node)
          Tests if this list contains a specified node.
 boolean equals(vote.NodeList l)
          Tests if some other node list is "equal to" this one.
 vote.Node getNode(int i)
          Returns the node at the specified position in this list.
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, remove, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList
 

Constructor Detail

NodeList

public NodeList()
Method Detail

getNode

public vote.Node getNode(int i)
Returns the node at the specified position in this list.

Returns:
the node at the specified position in this list.

contains

public boolean contains(vote.Node node)
Tests if this list contains a specified node.

Parameters:
node - a node.
Returns:
true if the node is a part of one in the list.

equals

public boolean equals(vote.NodeList l)
Tests if some other node list is "equal to" this one. It is supposed that the two list have the same size.

Parameters:
l - the node list with which to compare.
Returns:
true if all nodes are equal one by one.