org.gersteinlab.tyna.core.util
Class NodePair

java.lang.Object
  extended by org.gersteinlab.tyna.core.util.NodePair
All Implemented Interfaces:
java.lang.Comparable

public class NodePair
extends java.lang.Object
implements java.lang.Comparable

        This class is a utility class for working with node pairs.
        

Version:
1.0 (Januray 31, 2006) Change History: 1.0 - Initial version
Author:
Kevin Yuk-Lap Yip

Constructor Summary
NodePair(Node node1, Node node2)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 boolean equals(java.lang.Object o)
           
 Node getNode1()
           
 Node getNode2()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodePair

public NodePair(Node node1,
                Node node2)
Method Detail

getNode1

public Node getNode1()

getNode2

public Node getNode2()

compareTo

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

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(Object)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()