net.anidb.util
Class ObjectKit

java.lang.Object
  extended by net.anidb.util.ObjectKit

public class ObjectKit
extends java.lang.Object

A kit for object operations.

Version:
1.0, 31.12.2009
Author:
grizzlyxp (http://anidb.net/perl-bin/animedb.pl?show=userpage&uid=63935)

Method Summary
static boolean equals(java.lang.Object thatObj, java.lang.Object thisObj)
          Compares the two objects.
static int hash(java.lang.Object obj, int hash)
          Calculates a new hash for the object and the old hash.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hash

public static int hash(java.lang.Object obj,
                       int hash)

Calculates a new hash for the object and the old hash.

This can be used for calculating the hash of an object.

Parameters:
obj - The object.
hash - The old hash.
Returns:
The new hash.
See Also:
Object.hashCode()

equals

public static boolean equals(java.lang.Object thatObj,
                             java.lang.Object thisObj)

Compares the two objects.

Attention: If they are both null, they are not equal.

Parameters:
thatObj - The other object.
thisObj - The object which called the method.
Returns:
true, if the both objects are equals, false otherwise.