vanted.validation
Class MyNodesArray

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<MyNodes>
              extended by vanted.validation.MyNodesArray
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<MyNodes>, java.util.Collection<MyNodes>, java.util.List<MyNodes>, java.util.RandomAccess

public class MyNodesArray
extends java.util.ArrayList<MyNodes>

The Class MyNodesArray is a helper class for node validation.

Author:
Kevin Pucknat
See Also:
Serialized Form

Constructor Summary
MyNodesArray()
           
 
Method Summary
 boolean contains(org.graffiti.graph.Node node)
          Checks if this array of nodes contains this node.
 boolean contains(org.graffiti.graph.Node source, org.graffiti.graph.Node target)
          Checks if this array of nodes contains this source and target node.
 MyNodes get(org.graffiti.graph.Node source, org.graffiti.graph.Node target)
          Gets the nodes from the graph.
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, 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, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

MyNodesArray

public MyNodesArray()
Method Detail

get

public MyNodes get(org.graffiti.graph.Node source,
                   org.graffiti.graph.Node target)
Gets the nodes from the graph.

Parameters:
source - the source
target - the target
Returns:
the my nodes

contains

public boolean contains(org.graffiti.graph.Node node)
Checks if this array of nodes contains this node.

Parameters:
node - the node
Returns:
true, if successful

contains

public boolean contains(org.graffiti.graph.Node source,
                        org.graffiti.graph.Node target)
Checks if this array of nodes contains this source and target node.

Parameters:
source - the source
target - the target
Returns:
true, if successful