/** * Construct a new instance. * * @param key the map key * @param value the map value * @param <K> the key type * @param <V> the value type * @return the entry */ public static <K, V> MapEntry<K, V> entry(K key, V value) { return new MapEntry<K, V>(key, value); }
/** * Construct a new instance. * * @param key the map key * @param value the map value * @param <K> the key type * @param <V> the value type * @return the entry */ public static <K, V> MapEntry<K, V> entry(K key, V value) { return new MapEntry<K, V>(key, value); }