org.dbunit.util.search
Class Edge

java.lang.Object
  extended by org.dbunit.util.search.Edge
All Implemented Interfaces:
Comparable, IEdge
Direct Known Subclasses:
FKRelationshipEdge, ForeignKeyRelationshipEdge

public class Edge
extends Object
implements IEdge

Basic implementation of the IEdge interface.

Since:
2.2.0 (Aug 25, 2005)
Version:
$Revision: 826 $ $Date: 2008-10-05 19:42:03 +0200 (Sun, 05 Oct 2008) $
Author:
Felipe Leme (dbunit@felipeal.net), Last changed by: $Author: gommma $

Constructor Summary
Edge(Comparable nodeFrom, Comparable nodeTo)
           
 
Method Summary
 int compareTo(Object o)
          Compares this edge to the given one using the getFrom() nodes first.
 boolean equals(Object obj)
           
 Object getFrom()
          Get the node this edge originates from.
 Object getTo()
          Get the node this edge points to.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Edge

public Edge(Comparable nodeFrom,
            Comparable nodeTo)
Parameters:
nodeFrom -
nodeTo -
Method Detail

getFrom

public Object getFrom()
Description copied from interface: IEdge
Get the node this edge originates from.

Specified by:
getFrom in interface IEdge
Returns:
node this edge originates from.

getTo

public Object getTo()
Description copied from interface: IEdge
Get the node this edge points to.

Specified by:
getTo in interface IEdge
Returns:
node this edge points to.

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(Object o)
Compares this edge to the given one using the getFrom() nodes first. If those are equal the getTo()} is used for comparison.

Specified by:
compareTo in interface Comparable
See Also:
Comparable.compareTo(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2002-2012. All Rights Reserved.