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
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 |
NodeList
public NodeList()
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.