er.extensions.foundation
Class ERXArrayUtilities.FlattenOperator
java.lang.Object
er.extensions.foundation.ERXArrayUtilities.FlattenOperator
- All Implemented Interfaces:
- NSArray.Operator
- Enclosing class:
- ERXArrayUtilities
public static class ERXArrayUtilities.FlattenOperator
- extends Object
Define an NSArray.Operator for the key flatten.
This allows for key value paths like:
myArray.valueForKey("@flatten");
Which in this case would return myArray flattened if myArray is an NSArray of NSArrays (of NSArrays etc).
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ERXArrayUtilities.FlattenOperator
public ERXArrayUtilities.FlattenOperator()
- public empty constructor
compute
public Object compute(NSArray array,
String keypath)
- Flattens the given array.
- Parameters:
array - array to be filtered.keypath - name of fetch specification.
- Returns:
- immutable filtered array.
contents
public NSArray contents(NSArray array,
String keypath)
Copyright © 2002 – 2007 Project Wonder.