er.extensions.foundation
Class ERXArrayUtilities.RemoveNullValuesOperator
java.lang.Object
er.extensions.foundation.ERXArrayUtilities.RemoveNullValuesOperator
- All Implemented Interfaces:
- NSArray.Operator
- Enclosing class:
- ERXArrayUtilities
public static class ERXArrayUtilities.RemoveNullValuesOperator
- extends Object
Define an NSArray.Operator for the key removeNullValues.
This allows for key value paths like:
myArray.valueForKeyPath("@removeNullValues.someOtherPath");
Which in this case would return myArray without the occurrences of NSKeyValueCoding.Null.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ERXArrayUtilities.RemoveNullValuesOperator
public ERXArrayUtilities.RemoveNullValuesOperator()
- public empty constructor
compute
public Object compute(NSArray array,
String keypath)
- Removes null values from 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.