@Test void entryOf() { Map.Entry<String, Integer> entry = Maps.entryOf("a", 1); Assertions.assertEquals("a", entry.getKey()); Assertions.assertEquals(1, entry.getValue()); entry.setValue(2); Assertions.assertEquals(2, entry.getValue()); }
public static <K, V> Map.Entry<K, V> entryOf(K key, V value) { return new AbstractMap.SimpleEntry<>(key, value); }
Maps { public static <K, V> Map.Entry<K, V> entryOf(K key, V value) { return new AbstractMap.SimpleEntry<>(key, value); } }
Maps { public static <K, V> Map.Entry<K, V> entryOf(K key, V value) { return new AbstractMap.SimpleEntry<>(key, value); }  }
Maps { public static <K, V> Map.Entry<K, V> entryOf(K key, V value) { return new AbstractMap.SimpleEntry<>(key, value); }  static void update(Map<K, V> map, K key, Supplier<V> defaultValue, Function<V, V> updateFunction); static V put(Map<? super K, ? super V> map, K key, V value); static Map<V, K> swapped(Map<K, V> map, Supplier<Map<V, K>> mapSupplier); static Map.Entry<K, V> entryOf(K key, V value); static Map.Entry<K, V> immutableEntryOf(K key, V value); static Map<K, V> of(Object... values); @SuppressWarnings({ "unchecked", "unused" }) static Map<K, V> of(Class<K> keyType, Class<V> valueType, Object... values); }
Maps { public static <K, V> Map.Entry<K, V> entryOf(K key, V value) { return new AbstractMap.SimpleEntry<>(key, value); }  static void update(Map<K, V> map, K key, Supplier<V> defaultValue, Function<V, V> updateFunction); static V put(Map<? super K, ? super V> map, K key, V value); static Map<V, K> swapped(Map<K, V> map, Supplier<Map<V, K>> mapSupplier); static Map.Entry<K, V> entryOf(K key, V value); static Map.Entry<K, V> immutableEntryOf(K key, V value); static Map<K, V> of(Object... values); @SuppressWarnings({ "unchecked", "unused" }) static Map<K, V> of(Class<K> keyType, Class<V> valueType, Object... values);  }