Project Wonder 5.0.0.8795

er.extensions.foundation
Class ERXArrayUtilities.ReverseOperator

java.lang.Object
  extended by er.extensions.foundation.ERXArrayUtilities.ReverseOperator
All Implemented Interfaces:
NSArray.Operator
Enclosing class:
ERXArrayUtilities

public static class ERXArrayUtilities.ReverseOperator
extends Object

Define an NSArray.Operator for the key reverse.

This allows for key value paths like:

myArray.valueForKey("@reverse.someMorePath");

which return a reversed result as to you would normally get.


Constructor Summary
ERXArrayUtilities.ReverseOperator()
          public empty constructor
 
Method Summary
 Object compute(NSArray array, String keypath)
          returns the reverse value for the values of the keypath.
 NSArray contents(NSArray array, String keypath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ERXArrayUtilities.ReverseOperator

public ERXArrayUtilities.ReverseOperator()
public empty constructor

Method Detail

compute

public Object compute(NSArray array,
                      String keypath)
returns the reverse value for the values of the keypath.

Parameters:
array - array to be checked.
keypath - value of reverse.
Returns:
reversed array for keypath.

contents

public NSArray contents(NSArray array,
                        String keypath)

Last updated: Fri, Jan 9, 2009 • 04:35 AM EST

Copyright © 2002 – 2007 Project Wonder.