|
Project Wonder 5.0 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objecter.extensions.foundation.ERXArrayUtilities.AvgNonNullOperator
public static class ERXArrayUtilities.AvgNonNullOperator
Define an NSArray.Operator
for the key avgNonNull.
This allows for key value paths like:
myArray.valueForKey("@avgNonNull.payment.amount");myArray.valueForKey("payment.@avgNonNull.amount");myArray.valueForKey("payment.amount.@avgNonNull");valueForKeyPath on
the array to its left, but instead loops through the values of the array
to its left, calling
valueForKeyPath
on the individual array values instead. This behavior is consistent with
Apple's standard NSArray operators.
| Constructor Summary | |
|---|---|
ERXArrayUtilities.AvgNonNullOperator()
public empty constructor |
|
| Method Summary | |
|---|---|
java.lang.Object |
compute(com.webobjects.foundation.NSArray<?> array,
java.lang.String keypath)
returns the average value for over all non-null values. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ERXArrayUtilities.AvgNonNullOperator()
| Method Detail |
|---|
public java.lang.Object compute(com.webobjects.foundation.NSArray<?> array,
java.lang.String keypath)
compute in interface com.webobjects.foundation.NSArray.Operatorarray - array to be checked.keypath - path to numeric values
NULL.
|
Last updated: Tue, Feb 21, 2017 05:45 PM CET | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||