ERXArrayUtilities.UniqueOperator Class Reference

Inherits er::extensions::foundation::ERXArrayUtilities::BaseOperator.

Collaboration diagram for ERXArrayUtilities.UniqueOperator:

Collaboration graph
[legend]

List of all members.

Public Member Functions

Object compute (NSArray<?> array, String keypath)
 UniqueOperator ()


Detailed Description

Define an NSArray.Operator for the key unique.

This allows for key value paths like:

myArray.valueForKeyPath("@unique.someOtherPath");

Which in this case would return only those objects which are unique in myArray before continuing to process someOtherPath.

See also:
BaseOperator

Constructor & Destructor Documentation

UniqueOperator (  ) 

public empty constructor


Member Function Documentation

Object compute ( NSArray<?>  array,
String  keypath 
)

Removes duplicates.

Parameters:
array array to be uniqued.
keypath the key path after removing duplicates from the array
Returns:
the value produced by following the keypath after removing duplicates


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