absurdist
Class LinkPair

java.lang.Object
  extended byabsurdist.LinkPair

class LinkPair
extends java.lang.Object

An auxiliary class used to form keys in the link similarity cache in Absurdist. It is hoped that such a key is more efficient than a string. Maybe not :-)


Field Summary
(package private)  int in
           
(package private)  int io
           
(package private)  int jn
           
(package private)  int jo
           
 
Constructor Summary
(package private) LinkPair(int io, int jo, Link ln)
          A convenience constructor
(package private) LinkPair(Link lo, int in, int jn)
          A convenience constructor
(package private) LinkPair(Link lo, Link ln)
           
 
Method Summary
 boolean equals(java.lang.Object _o)
          Returns true if the specified linkpair is the same as this one.
 int hashCode()
          Just something...
 java.lang.String toString()
          Returns a string representation of this link pair.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

io

int io

jo

int jo

in

int in

jn

int jn
Constructor Detail

LinkPair

LinkPair(Link lo,
         Link ln)

LinkPair

LinkPair(int io,
         int jo,
         Link ln)
A convenience constructor


LinkPair

LinkPair(Link lo,
         int in,
         int jn)
A convenience constructor

Method Detail

toString

public java.lang.String toString()
Returns a string representation of this link pair.


hashCode

public int hashCode()
Just something... I am afraid the standard hashCode() does not work right


equals

public boolean equals(java.lang.Object _o)
Returns true if the specified linkpair is the same as this one. (Looks like you got to have your own equals() if you use this class as a Hashtable key.)