Package org.approvej.scrub
Class InstantScrubber
java.lang.Object
org.approvej.scrub.RegexScrubber
org.approvej.scrub.InstantScrubber
Scrubs a
String by replacing all occurrences of a date time 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 InstantScrubberinstants(DateTimeFormatter dateFormatPattern) CreatesRegexScrubberto replace date strings of the given pattern.Methods inherited from class org.approvej.scrub.RegexScrubber
apply, stringsMatching, stringsMatching
-
Method Details
-
instants
CreatesRegexScrubberto replace date strings of the given pattern.- Parameters:
dateFormatPattern- aDateTimeFormatterto parse the dates- Returns:
- a new
InstantScrubberwith the givenDateTimeFormatter.
-