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

This documentation page is derived (with some adjustments) from the JDO 2.2 API
and is available under the terms of the Apache License, v. 2.0.