jaggregate
Interface UnaryFunctor<A,R>

Type Parameters:
A - a constraint on the allowable types for the functor's argument
R - a constraint on the allowable types for the functor's return value
All Known Implementing Classes:
UnaryFunction

public interface UnaryFunctor<A,R>

Interface for a functor that accepts one argument.

This interface was extracted from UnaryFunctor and methods using it retrofitted to use this interface, to allow BGGA-style closures to be converted to an interface type representing the functor.

Since:
3.3
Version:
$Id: UnaryFunctor.java,v 1.3 2008/05/12 00:23:14 pholser Exp $
Author:
Paul Holser

Method Summary
 R evaluate(A argument)
          Evaluates this functor against the given target.
 

Method Detail

evaluate

R evaluate(A argument)
Evaluates this functor against the given target.

Parameters:
argument - the argument to the functor
Returns:
the result of the evaluation


© Copyright 2004-2008 Paul R. Holser, Jr. All rights reserved. Licensed under the Academic Free License version 3.0. pholser@alumni.rice.edu