public static class ERXArrayUtilities.ObjectAtIndexOperator extends java.lang.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 |
|---|---|
java.lang.Object |
compute(NSArray array,
java.lang.String keypath)
returns the keypath value for n-ths object.
|
public java.lang.Object compute(NSArray array, java.lang.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 – 2022 Project Wonder.