ERXEqualator Class Reference

Inherited by ERXEqualator._EOEqualsEqualator, and ERXEqualator._SafeEqualsEqualator.

Collaboration diagram for ERXEqualator:

Collaboration graph
[legend]

List of all members.

Classes

class  _EOEqualsEqualator
class  _SafeEqualsEqualator

Public Member Functions

abstract boolean objectIsEqualToObject (Object o1, Object o2)

Static Public Attributes

static final ERXEqualator EOEqualsEqualator = new _EOEqualsEqualator()
static final ERXEqualator SafeEqualsEqualator = new _SafeEqualsEqualator()


Detailed Description

This class is an abstract class that defines an API for determining if two objects are equal. This is useful if you'd like to have a custom definition of what it means for two objects to be equal in one context (within an array, for example) while not changing the meaning of equality in another (by overriding equals()). This is especially useful for doing non-editing-context-sensitive equality checks between EOs.

Member Function Documentation

abstract boolean objectIsEqualToObject ( Object  o1,
Object  o2 
) [pure virtual]

Performs the equality check between o1 and o2. What the equality check means between the objects and when either object is null or when objects are of different classes is the subclass's responsibility.

Parameters:
o1 first object to compare.
o2 second object to compare.
Returns:
true if o1 and o2 are to be considered equal, false otherwise.

Implemented in ERXEqualator._SafeEqualsEqualator, and ERXEqualator._EOEqualsEqualator.


Member Data Documentation

Provides EO equality checks regardless of the editing context the objects are registered in.

See also:
ERXEOControlUtilities.eoEquals(EOEnterpriseObject, EOEnterpriseObject)

Provides a safe equality check that won't throw if one or both of the objects is null.

See also:
ERXExtensions.safeEquals(Object, Object)


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:12 2012 for Project Wonder by  doxygen 1.5.8