1 package org.simantics.scl.osgi.map;
3 import gnu.trove.map.hash.THashMap;
4 import gnu.trove.procedure.TObjectObjectProcedure;
6 import java.util.ArrayList;
9 import org.simantics.scl.runtime.tuple.Tuple2;
11 public class HashMapUtils {
13 public static List entries(THashMap map) {
14 final ArrayList result = new ArrayList(map.size());
15 map.forEachEntry(new TObjectObjectProcedure<Object, Object>() {
18 public boolean execute(Object a, Object b) {
19 result.add(new Tuple2(a, b));