@Test public void fromMap() { final Map<?, ?> map = new Maps.Builder<String, String>() .put("name", "tiago") .put("age", "34") .build(); final KeyValue[] keyValues = JsConverter.fromMap(map); assertEquals(keyValues.length, 2); assertEquals(keyValues[0].getKey(), "name"); assertEquals(keyValues[0].getValue(), "tiago"); assertEquals(keyValues[1].getKey(), "age"); assertEquals(keyValues[1].getValue(), "34"); }
public static KeyValue[] fromMap(Map map) { return fromEntries(map.entrySet()); }
JsConverter { public static KeyValue[] fromMap(Map map) { return fromEntries(map.entrySet()); } }
JsConverter { public static KeyValue[] fromMap(Map map) { return fromEntries(map.entrySet()); }  }
JsConverter { public static KeyValue[] fromMap(Map map) { return fromEntries(map.entrySet()); }  static KeyValue[] fromMap(Map map); static KeyValue[] fromEntries(Collection<Map.Entry> entries); }
JsConverter { public static KeyValue[] fromMap(Map map) { return fromEntries(map.entrySet()); }  static KeyValue[] fromMap(Map map); static KeyValue[] fromEntries(Collection<Map.Entry> entries);  }