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. TODO: add test cases (specially for the equals/compare methods)

Since:
Aug 25, 2005
Version:
$Revision: 554 $
Author:
Felipe Leme

Constructor Summary
Edge(Comparable nodeFrom, Comparable nodeTo)
           
 
Method Summary
 int compareTo(Object o)
           
 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)
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)
Specified by:
compareTo in interface Comparable

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2002-2011. All Rights Reserved.