Package org.approvej.scrub
Interface Scrubber<I extends Scrubber<I,T,R>,T,R>
- Type Parameters:
I- the type of the scrubber itselfT- the type of value to scrubR- the type of the replacement
- All Superinterfaces:
Function<T,,T> UnaryOperator<T>
- All Known Subinterfaces:
DateTimeScrubber,FieldScrubber<T>,StringScrubber
An
UnaryOperator that scrubs certain information from a value. This might be useful
especially for dynamic data like timestamps, dates or generally random values.-
Method Summary
Modifier and TypeMethodDescriptionreplacement(Replacement<R> replacement) Creates a copy of this using the givenReplacement.default Ireplacement(R staticReplacement) Creates a copy of this using the given staticReplacement.
-
Method Details
-
replacement
Creates a copy of this using the givenReplacement.- Parameters:
replacement- aReplacementfunction- Returns:
- a copy of this using the given
Replacement
-
replacement
Creates a copy of this using the given staticReplacement.- Parameters:
staticReplacement- a static value that will replace any match of the scrubber- Returns:
- a copy of this using the given staticReplacement
-