Package org.approvej.scrub
Interface DateTimeScrubber
- All Superinterfaces:
Function<String,,String> Scrubber<DateTimeScrubber,,String, String> UnaryOperator<String>
Scrubs a
String of date/time strings described by a DateTimeFormatter pattern
like "yyyy-MM-dd" for local dates using the wrapped StringScrubber.-
Method Summary
Modifier and TypeMethodDescriptionreplacement(RelativeDateReplacement replacement) Set theRelativeDateReplacementto be used.replacement(RelativeDateTimeReplacement replacement) Set theRelativeDateTimeReplacementto be used.Methods inherited from interface org.approvej.scrub.Scrubber
replacement, replacement
-
Method Details
-
replacement
Set theRelativeDateTimeReplacementto be used. Automatically sets theRelativeDateTimeReplacement.dateTimeFormatter(DateTimeFormatter)to the one of this.- Parameters:
replacement- aRelativeDateTimeReplacement- Returns:
- a copy of this using the given replacement
-
replacement
Set theRelativeDateReplacementto be used. Automatically sets theRelativeDateReplacement.dateTimeFormatter(DateTimeFormatter)to the one of this.- Parameters:
replacement- aRelativeDateReplacement- Returns:
- a copy of this using the given replacement
-