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

java.lang.Object
  extended by org.apache.commons.functor.example.lines.WordCount
All Implemented Interfaces:
Functor, UnaryFunction<String,Integer>, UnaryFunctor<String>

public class WordCount
extends Object
implements UnaryFunction<String,Integer>

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

Constructor Summary
WordCount()
           
 
Method Summary
 Integer evaluate(String obj)
           
static WordCount 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

WordCount

public WordCount()
Method Detail

evaluate

public Integer evaluate(String obj)
Specified by:
evaluate in interface UnaryFunction<String,Integer>

instance

public static WordCount instance()


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