org.springframework.rules.closure
Interface BinaryClosure

All Superinterfaces:
Closure
All Known Implementing Classes:
AbstractBinaryClosure, Maximum, Minimum

public interface BinaryClosure
extends Closure

A function object that tests two arguments and returns a single boolean result.

A binary closure is a function object that acts on two arguments. For example, the "Maximum" binary closure returns the maximum of two numbers.

Author:
Keith Donald

Method Summary
 Object call(Object argument1, Object argument2)
          Executes this closure with the provided arguments.
 
Methods inherited from interface org.springframework.core.closure.Closure
call
 

Method Detail

call

Object call(Object argument1,
            Object argument2)
Executes this closure with the provided arguments.

Parameters:
argument1 - the first argument
argument2 - the second argument
Returns:
The result of executing the closure


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