| Interface representing the identity of an individual domain object instance.
As implementations are used as the key for caching and lookup, it is
essential that implementations provide methods so that object-equality
rather than reference-equality can be relied upon by caches. In other
words, a cache can consider two ObjectIdentity s equal if
identity1.equals(identity2) , rather than reference-equality of
identity1==identity2 .
author: Ben Alex version: $Id: ObjectIdentity.java 1784 2007-02-24 21:00:24Z luke_t $ |