SafeComparer Class | 
Namespace: Tangosol.Util.Comparator
public class SafeComparer : IQueryCacheComparer, IEntryAwareComparer, IComparer, IPortableObject
The SafeComparer type exposes the following members.
| Name | Description | |
|---|---|---|
| SafeComparer | 
            Default constructor.
              | |
| SafeComparer(IComparer) | 
            Construct a SafeComparer delegating to the specified (wrapped)
            comparer.
              | 
| Name | Description | |
|---|---|---|
| Compare | 
            Compares its two arguments for order.
              | |
| CompareEntries | 
            Compare two entries based on the rules specified by IComparer.
              | |
| CompareSafe | 
            Compares its two arguments for order.
              | |
| Equals | 
            Determine if two comparers are equal.
              (Overrides ObjectEquals(Object).) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.  (Inherited from Object.) | |
| GetHashCode | 
            Return the hash code for this comparator.
              (Overrides ObjectGetHashCode.) | |
| GetType | Gets the Type of the current instance.  (Inherited from Object.) | |
| IsKeyComparer | 
            Specifies whether this comparer expects to compare keys or 
            values.
              | |
| IsKeyComparer(IComparer) | 
            Check whether the specified comparer expects to compare keys or
            values.
              | |
| MemberwiseClone | Creates a shallow copy of the current Object.  (Inherited from Object.) | |
| ReadExternal | 
            Restore the contents of a user type instance by reading its state
            using the specified IPofReader object.
              | |
| ToString | 
            Returns a human-readable description for this IComparer.
              (Overrides ObjectToString.) | |
| WriteExternal | 
            Save the contents of a POF user type instance by writing its
            state using the specified IPofWriter object.
              | 
| Name | Description | |
|---|---|---|
| Instance | 
            The trivial SafeComparer.
              | |
| m_comparer | 
            The wrapped IComparer.
              | 
null values are evaluated as "less then" any non-null value. If the wrapped comparator is not specified then all non-null values must implement the IComparable interface.
Use SafeComparer.Instance to obtain an instance of non-delegating SafeComparer.