|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.anidb.util.ObjectKit
public class ObjectKit
A kit for object operations.
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 |
---|
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.
obj
- The object.hash
- The old hash.
Object.hashCode()
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.
thatObj
- The other object.thisObj
- The object which called the method.
true
, if the both objects are equals,
false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |