ObjectDB ObjectDB

equals(obj) - JDO SingleFieldIdentity's method

Method
javax.jdo.identity.SingleFieldIdentity
boolean equals(
  Object obj
)

Check the class and class name and object type. If restored from serialization, class will be null so compare class name.
Parameters:
obj - the other object
Returns:
true if the class or class name is the same
Since:
JDO 1.0