org.dbunit.util.search
Class Edge
java.lang.Object
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
Edge
public Edge(Comparable nodeFrom,
Comparable nodeTo)
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.