com.ca.jcs.util
Class StripRegexStringMapper

java.lang.Object
  extended by com.ca.jcs.util.StripRegexStringMapper
All Implemented Interfaces:
com.ca.commons.functional.Fn<String,String>

public class StripRegexStringMapper
extends Object
implements com.ca.commons.functional.Fn<String,String>

Helper class that maps any null strings or strings containing a provided Java regular expression, to null. All other strings map to themselves.


Constructor Summary
StripRegexStringMapper(String regex)
           
 
Method Summary
 String apply(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StripRegexStringMapper

public StripRegexStringMapper(String regex)
Method Detail

apply

public String apply(String s)
Specified by:
apply in interface com.ca.commons.functional.Fn<String,String>


Created 2011-07-14 13:27 EST