org.springframework.rules.closure
Class AbstractBinaryClosure

java.lang.Object
  extended by org.springframework.core.closure.support.AlgorithmsAccessor
      extended by org.springframework.core.closure.support.AbstractClosure
          extended by org.springframework.rules.closure.AbstractBinaryClosure
All Implemented Interfaces:
Serializable, Closure, BinaryClosure
Direct Known Subclasses:
Maximum, Minimum

public abstract class AbstractBinaryClosure
extends AbstractClosure
implements BinaryClosure

Conveneince support class for binary closures. Overrides call(argument) to treat the passed argument as an array with two elements.

Author:
Keith Donald
See Also:
Serialized Form

Constructor Summary
AbstractBinaryClosure()
           
 
Method Summary
 Object call(Object argument)
          Evaluate the function with the provided argument, returning the result.
 
Methods inherited from class org.springframework.core.closure.support.AbstractClosure
forEach, forEach
 
Methods inherited from class org.springframework.core.closure.support.AlgorithmsAccessor
allTrue, allTrue, anyTrue, anyTrue, findAll, findAll, findFirst, findFirst, forEach, forEach, getAlgorithms
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.rules.closure.BinaryClosure
call
 

Constructor Detail

AbstractBinaryClosure

public AbstractBinaryClosure()
Method Detail

call

public Object call(Object argument)
Description copied from interface: Closure
Evaluate the function with the provided argument, returning the result.

Specified by:
call in interface Closure
Parameters:
argument - the argument
Returns:
the function return value


Copyright © 2004-2008 The Spring Framework. All Rights Reserved.