public static <K,V> void eachEntry(Map<K, V> map,
			P2<K, V> p2) {
		if (map == null) {
			return;
		}
		
		for (Entry<K, V> entry : map.entrySet()) {
			p2.e(entry.getKey(), entry.getValue());
		}
	}