Package org.approvej.scrub
Class DateScrubber
java.lang.Object
org.approvej.scrub.RegexScrubber
org.approvej.scrub.DateScrubber
Scrubs a
String by replacing all occurrences of a date pattern.-
Nested Class Summary
Nested classes/interfaces inherited from class org.approvej.scrub.RegexScrubber
RegexScrubber.RegexScrubberBuilder -
Field Summary
Fields inherited from class org.approvej.scrub.RegexScrubber
NUMBERED_REPLACEMENT -
Method Summary
Modifier and TypeMethodDescriptionstatic DateScrubberdates(DateTimeFormatter dateFormatPattern) CreatesRegexScrubberto replace date strings of the given pattern.Methods inherited from class org.approvej.scrub.RegexScrubber
apply, stringsMatching, stringsMatching
-
Method Details
-
dates
CreatesRegexScrubberto replace date strings of the given pattern.- Parameters:
dateFormatPattern- aDateTimeFormatterto parse the dates- Returns:
- a new
DateScrubberwith the givenDateTimeFormatter.
-