javatools.util
Class Compare

java.lang.Object
  |
  +--javatools.util.Compare

public class Compare
extends java.lang.Object

Such a preliminary class.


Constructor Summary
Compare()
           
 
Method Summary
static boolean eq(java.lang.Object o1, java.lang.Object o2)
          Equals object to object.
static int hashOne(java.lang.Object o)
          Returns the hash code for an object, or zero for a null object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Compare

public Compare()
Method Detail

eq

public static boolean eq(java.lang.Object o1,
                         java.lang.Object o2)
Equals object to object.

Parameters:
o1 - The first term.
o2 - The second term.
Returns:
Are they equal?

hashOne

public static int hashOne(java.lang.Object o)
Returns the hash code for an object, or zero for a null object.

Parameters:
o - The object to hash.
Returns:
The hash code.