com.ca.jcs.util
Class StripRegexStringMapper
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StripRegexStringMapper
public StripRegexStringMapper(String regex)
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