/** * @param store * @return the corresponding Store to use in JKeyedProducer.sumByKey */ public static <K,V> Store<Memory, scala.collection.mutable.Map<K, V>, K, V> store(Map<K, V> store) { return new Store<Memory, scala.collection.mutable.Map<K, V>, K, V>(JavaConversions.asScalaMap(store)); }
@SuppressWarnings("unchecked") // apply returns a raw Map ... private static <K, V> scala.collection.immutable.Map<K, V> toScalaMap(Map<K, V> map) { return scala.collection.immutable.Map$.MODULE$.apply(JavaConversions.asScalaMap(map).toSeq()); }