Package io.datarouter.bytes
Class ReplacingFunction<A,B>
java.lang.Object
io.datarouter.bytes.ReplacingFunction<A,B>
- All Implemented Interfaces:
Function<A,B>
- Direct Known Subclasses:
ReplacingFunction.NullReplacingFunction
Wrapper around a function to handle exceptional values like null.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classReplace nulls with nulls.static classReplace nulls with something provided by the Supplier -
Method Summary
-
Method Details
-
apply
-
of
public static <A,B> ReplacingFunction<A,B> of(Function<A, B> function, A valueToReplace, Supplier<B> replacementSupplier)
-