@Test public void evenNumberOfParamsWorks() { map = Maps.of("a", "b", "c", "d", "e", "f"); assertEquals(3, map.size()); keys = map.keySet().iterator(); assertEquals("a", keys.next()); assertEquals("c", keys.next()); assertEquals("e", keys.next()); values = map.values().iterator(); assertEquals("b", values.next()); assertEquals("d", values.next()); assertEquals("f", values.next()); }
public static Map<String, String> of(String k1, String v1) { Map<String, String> map = new LinkedHashMap<>(2); map.put(k1, v1); return map; }
Maps { public static Map<String, String> of(String k1, String v1) { Map<String, String> map = new LinkedHashMap<>(2); map.put(k1, v1); return map; } }
Maps { public static Map<String, String> of(String k1, String v1) { Map<String, String> map = new LinkedHashMap<>(2); map.put(k1, v1); return map; }  }
Maps { public static Map<String, String> of(String k1, String v1) { Map<String, String> map = new LinkedHashMap<>(2); map.put(k1, v1); return map; }  static Map<String, String> of(String k1, String v1); static Map<String, String> of(String k1, String v1, String k2, String v2); static Map<String, String> of(String... kvp); }
Maps { public static Map<String, String> of(String k1, String v1) { Map<String, String> map = new LinkedHashMap<>(2); map.put(k1, v1); return map; }  static Map<String, String> of(String k1, String v1); static Map<String, String> of(String k1, String v1, String k2, String v2); static Map<String, String> of(String... kvp);  }