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