K
- The key parameter type of the MapV
- The value parameter type of the Mappublic final class MergeMaps<K,V> extends Object implements BiMonoidFactory<Fn0<Map<K,V>>,Semigroup<V>,Map<K,V>>
Monoid
instance formed by Map.merge(Object, Object, BiFunction)
and a semigroup over
V
. Combines together multiple maps using the provided semigroup for key collisions.Modifier and Type | Method and Description |
---|---|
Monoid<Map<K,V>> |
checkedApply(Fn0<Map<K,V>> mFn0,
Semigroup<V> semigroup) |
static <K,V> MergeMaps<K,V> |
mergeMaps() |
static <K,V> MonoidFactory<Semigroup<V>,Map<K,V>> |
mergeMaps(Fn0<Map<K,V>> mFn0) |
static <K,V> Monoid<Map<K,V>> |
mergeMaps(Fn0<Map<K,V>> mFn0,
Semigroup<V> semigroup) |
static <K,V> Fn1<Map<K,V>,Map<K,V>> |
mergeMaps(Fn0<Map<K,V>> mFn0,
Semigroup<V> semigroup,
Map<K,V> x) |
static <K,V> Map<K,V> |
mergeMaps(Fn0<Map<K,V>> mFn0,
Semigroup<V> semigroup,
Map<K,V> x,
Map<K,V> y) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply, apply, checkedApply, flip, uncurry
checkedApply
apply, apply, checkedApply, compose, contraMap, diMapL, discardR, fn4, fn4, fn4, fn4, widen
curried, curry, fn2, fromBiFunction, toBiFunction
public Monoid<Map<K,V>> checkedApply(Fn0<Map<K,V>> mFn0, Semigroup<V> semigroup)
Fn3
checkedApply
in interface Fn2<Fn0<Map<K,V>>,Semigroup<V>,Fn1<Map<K,V>,Fn1<Map<K,V>,Map<K,V>>>>
checkedApply
in interface Fn3<Fn0<Map<K,V>>,Semigroup<V>,Map<K,V>,Fn1<Map<K,V>,Map<K,V>>>
checkedApply
in interface BiMonoidFactory<Fn0<Map<K,V>>,Semigroup<V>,Map<K,V>>
checkedApply
in interface BiSemigroupFactory<Fn0<Map<K,V>>,Semigroup<V>,Map<K,V>>
public static <K,V> MergeMaps<K,V> mergeMaps()
public static <K,V> MonoidFactory<Semigroup<V>,Map<K,V>> mergeMaps(Fn0<Map<K,V>> mFn0)
public static <K,V> Monoid<Map<K,V>> mergeMaps(Fn0<Map<K,V>> mFn0, Semigroup<V> semigroup)
public static <K,V> Fn1<Map<K,V>,Map<K,V>> mergeMaps(Fn0<Map<K,V>> mFn0, Semigroup<V> semigroup, Map<K,V> x)