Collapse All Expand All

C#

Oracle® Coherence .NET API Reference
EntryComparer..::.Compare Method
EntryComparer Class See Also

Oracle® Coherence .NET API Reference Release 3.6.1
E18812-01
Compares two arguments for order.

Namespace: Tangosol.Util.Comparator
Assembly: Coherence (in Coherence.dll) Version: 3.6.1.0 (3.6.1.0)

# Syntax

C#
    public override int Compare(
    	Object o1,
    	Object o2
    )

#### Parameters

o1
  Type: System..::.Object
  The first object to be compared.

o2
  Type: System..::.Object
  The second object to be compared.

#### Return Value

A negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.

#### Implements

IComparer..::.Compare(Object, Object)

# Remarks

The arguments must be ICacheEntry objects. Depending on the comparison style, this method will pass either the entries' values, keys or the entries themselves to the underlying IComparer.

# See Also

EntryComparer Class
Tangosol.Util.Comparator Namespace