org.springframework.rules.closure
Class AbstractBinaryClosure
java.lang.Object
org.springframework.core.closure.support.AlgorithmsAccessor
org.springframework.core.closure.support.AbstractClosure
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
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.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 |
AbstractBinaryClosure
public AbstractBinaryClosure()
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.