Package ch.codexs.util
Class Result.BiCombiner<U>
- java.lang.Object
-
- ch.codexs.util.Result.BiCombiner<U>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <V> Result<V,I>mergeFlatMap(java.util.function.BiFunction<T,U,Result<V,I>> combiner)<V> Result<V,I>mergeMap(java.util.function.BiFunction<T,U,V> combiner)Merges the contents of the two results.
-
-
-
Method Detail
-
mergeMap
public <V> Result<V,I> mergeMap(java.util.function.BiFunction<T,U,V> combiner)
Merges the contents of the two results.- Type Parameters:
V- the type of the mapped content.- Parameters:
combiner- BiFunction to combine the contents if both exist.- Returns:
- a new
Result<V, I>containing the merged content.
-
-