org.apache.commons.functor.example.kata.one
Class Subtract

java.lang.Object
  extended by org.apache.commons.functor.example.kata.one.ArithmeticOperation
      extended by org.apache.commons.functor.example.kata.one.Subtract
All Implemented Interfaces:
BinaryFunction<Number,Number,Number>, BinaryFunctor<Number,Number>, Functor

public class Subtract
extends ArithmeticOperation

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

Constructor Summary
Subtract()
           
 
Method Summary
 Number evaluate(Number left, Number right)
           
static UnaryFunction<Number,Number> from(int factor)
           
static Subtract 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

Subtract

public Subtract()
Method Detail

evaluate

public Number evaluate(Number left,
                       Number right)

instance

public static Subtract instance()

from

public static UnaryFunction<Number,Number> from(int factor)


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