org.apache.commons.functor.example.kata.four
Class NthColumn

java.lang.Object
  extended by org.apache.commons.functor.example.kata.four.NthColumn
All Implemented Interfaces:
Functor, UnaryFunction<String,String>, UnaryFunctor<String>

public final class NthColumn
extends Object
implements UnaryFunction<String,String>

Evaluates the input String to extrace the nth whitespace delmited column.

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

Constructor Summary
NthColumn(int n)
           
 
Method Summary
 String evaluate(String obj)
           
static NthColumn instance(int n)
           
 
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

NthColumn

public NthColumn(int n)
Method Detail

evaluate

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

instance

public static final NthColumn instance(int n)


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