org.apache.commons.functor.example.lines
Class Sum

java.lang.Object
  extended by org.apache.commons.functor.example.lines.Sum
All Implemented Interfaces:
BinaryFunction<Number,Number,Integer>, BinaryFunctor<Number,Number>, Functor

public class Sum
extends Object
implements BinaryFunction<Number,Number,Integer>

Version:
$Revision: 665786 $ $Date: 2008-06-09 19:17:39 +0200 (Mon, 09 Jun 2008) $
Author:
Rodney Waldhoff

Constructor Summary
Sum()
           
 
Method Summary
 Integer evaluate(Number left, Number right)
           
static Sum instance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.commons.functor.Functor
equals, hashCode, toString
 

Constructor Detail

Sum

public Sum()
Method Detail

evaluate

public Integer evaluate(Number left,
                        Number right)
Specified by:
evaluate in interface BinaryFunction<Number,Number,Integer>

instance

public static final Sum instance()


Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.