K
- the key element typeV
- the value element typeM
- the resulting map typepublic final class ToMap<K,V,M extends Map<K,V>> extends Object implements Fn2<Fn0<M>,Iterable<? extends Map.Entry<K,V>>,M>
Fn0
of some Map
M
, create an instance of M
and put all of the
entries in the provided Iterable
into the instance. Note that instances of M
must support
Map.put(K, V)
(which is to say, must not throw on invocation).Modifier and Type | Method and Description |
---|---|
M |
checkedApply(Fn0<M> mFn0,
Iterable<? extends Map.Entry<K,V>> entries) |
static <K,V,M extends Map<K,V>> |
toMap() |
static <K,V,M extends Map<K,V>> |
toMap(Fn0<M> mFn0) |
static <K,V,M extends Map<K,V>> |
toMap(Fn0<M> mFn0,
Iterable<? extends Map.Entry<K,V>> entries) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply, apply, checkedApply, compose, contraMap, curried, curry, diMapL, discardR, flip, fn2, fromBiFunction, toBiFunction, uncurry, widen