public interface AclObjectIdentity
extends java.io.Serializable
It should be noted that AclObjectIdentity instances are created
in various locations throughout the package. As
AclObjectIdentitys are used as the key for caching, 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 AclObjectIdentitys equal if
identity1.equals(identity2), rather than reference-equality of
identity1==identity2.
In practical terms this means you must implement the standard
java.lang.Object methods shown below. Depending on your
cache's internal structure, you may also need to implement special
interfaces such as java.util.Comparator or
java.lang.Comparable.
boolean equals(java.lang.Object obj)
java.lang.Object documentation for the interface contract.equals in class java.lang.Objectobj - to be comparedtrue if the objects are equal, false otherwiseint hashCode()
java.lang.Object documentation for the interface contract.hashCode in class java.lang.Object