Click or drag to resize

AbstractKeyBasedCacheEquals Method

Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
14c (14.1.1.0)
F23534-02
Compares the specified object with this cache for equality.

Namespace:  Tangosol.Net.Cache.Support
Assembly:  Coherence (in Coherence.dll) Version: 14.1.1.14 (14.1.1.14)
Syntax
C#
public override bool Equals(
	Object o
)

Parameters

o
Type: SystemObject
Object to be compared for equality with this cache.

Return Value

Type: Boolean
true if the specified object is equal to this cache.
Remarks
Returns true if the given object is also a cache and the two caches represent the same mappings. More formally, two caches
t1
and
t2
represent the same mappings if
t1.Keys.Equals(t2.Keys)
and for every key
k
in
t1.Keys
,
 (t1[k]==null ? t2[k]==null :
            t1[k].Equals(t2[k]) 
. This ensures that the Equals method works properly across different implementations of the cache interface.
See Also