public static class ERXArrayUtilities.IsEmptyOperator extends Object implements NSArray.Operator
NSArray.Operator
for the key isEmpty.
This allows for key value paths like:
myArray.valueForKey("@isEmpty");
Which in this case would return true
if the
myArray.count() == 0, or false
if it is not.
This operator always ends computation. Any keypath following the isEmpty
operator is simply ignored.Constructor and Description |
---|
IsEmptyOperator() |
Modifier and Type | Method and Description |
---|---|
Object |
compute(NSArray array,
String keypath)
returns true if the given array is empty, useful for WOHyperlink disabled binding.
|
public Object compute(NSArray array, String keypath)
compute
in interface NSArray.Operator
array
- array to be checked.keypath
- the keypath. This value is ignored.Boolean.TRUE
if array is empty, Boolean.FALSE
otherwise.Copyright © 2002 – 2020 Project Wonder.