public final class CommonUtil extends Object
Modifier and Type | Method and Description |
---|---|
static <A,B,C> Function<com.iland.common.functional.Pair<A,B>,Optional<C>> |
wrapOptional(BiFunction<A,B,C> f)
Takes a
BiFunction and returns an equivalent one with the result
wrapped in an Optional. |
static <A,B> Function<A,Optional<B>> |
wrapOptional(Function<A,B> f)
Takes a
Function and returns an equivalent one with the result
wrapped in an Optional. |
public static <A,B,C> Function<com.iland.common.functional.Pair<A,B>,Optional<C>> wrapOptional(BiFunction<A,B,C> f)
BiFunction
and returns an equivalent one with the result
wrapped in an Optional.A
- type of the first input argB
- type of the second input argC
- type of the resultf
- the function to wrapBiFunction
with result wrapped in an Optional
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.