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

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

public final class IsInteger
extends Object
implements UnaryPredicate<String>

Tests to true iff the input object can be converted to an Integer by ToInteger.

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

Constructor Summary
IsInteger()
           
 
Method Summary
static IsInteger instance()
           
 boolean test(String obj)
           
 
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

IsInteger

public IsInteger()
Method Detail

test

public boolean test(String obj)
Specified by:
test in interface UnaryPredicate<String>

instance

public static final IsInteger instance()


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