public static class ERXArrayUtilities.ObjectAtIndexOperator extends Object implements NSArray.Operator
NSArray.Operator for the key objectAtIndex.
This allows for key value paths like:
myArray.valueForKey("@objectAtIndex.3.firstName");| Constructor and Description |
|---|
ObjectAtIndexOperator() |
| Modifier and Type | Method and Description |
|---|---|
Object |
compute(NSArray array,
String keypath)
returns the keypath value for n-ths object.
|
public Object compute(NSArray array, String keypath)
compute in interface NSArray.Operatorarray - array to be checked.keypath - integer value of index (zero based).null if array is empty or value is not in index, keypath value for the object at index otherwise.Copyright © 2002 – 2020 Project Wonder.