JavaGenes, NASA Ames. Written largely by Al Globus

gov.nasa.javaGenes.graph
Class Graph.TrailKey

java.lang.Object
  extended bygov.nasa.javaGenes.graph.Graph.TrailKey
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
Graph

protected static class Graph.TrailKey
extends java.lang.Object
implements java.io.Serializable

An object that efficiently represents a path for use in as a key Hashtables and KeyCounters.

See Also:
Serialized Form

Field Summary
protected  java.lang.Object end1
           
protected  java.lang.Object end2
           
protected  int length
           
protected static java.util.Hashtable permanentKeys
           
protected static Graph.TrailKey temporary
           
 
Constructor Summary
protected Graph.TrailKey()
           
  Graph.TrailKey(java.lang.Object v1, java.lang.Object v2, int count)
           
 
Method Summary
 boolean equals(java.lang.Object object)
           
static Graph.TrailKey getOne(java.lang.Object v1, java.lang.Object v2, int count)
          DANGEROUS: do not modify the objects returned!
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

end1

protected java.lang.Object end1

end2

protected java.lang.Object end2

length

protected int length

temporary

protected static Graph.TrailKey temporary

permanentKeys

protected static java.util.Hashtable permanentKeys
Constructor Detail

Graph.TrailKey

protected Graph.TrailKey()

Graph.TrailKey

public Graph.TrailKey(java.lang.Object v1,
                      java.lang.Object v2,
                      int count)
Method Detail

getOne

public static Graph.TrailKey getOne(java.lang.Object v1,
                                    java.lang.Object v2,
                                    int count)
DANGEROUS: do not modify the objects returned!


equals

public boolean equals(java.lang.Object object)

hashCode

public int hashCode()

JavaGenes, NASA Ames. Written largely by Al Globus