AbstractKeyBasedCacheGetHashCode Method |
Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
14c (14.1.1.0)
F23534-02
Returns the hash code value for this cache.
Namespace:
Tangosol.Net.Cache.Support
Assembly:
Coherence (in Coherence.dll) Version: 14.1.1.14 (14.1.1.14)
Syntaxpublic override int GetHashCode()
Return Value
Type:
Int32
The hash code value for this cache.
Remarks
The hash code of a cache is defined to be the sum of the hash
codes of each entry in the cache's
Entries. This ensures
that
t1.Equals(t2)
implies that
t1.GetHashCode()==t2.GetHashCode()
for any two caches
t1
and
t2
, as required by the general
contract of
object.GetHashCode.
See Also