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
.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|