Skip to content
This repository was archived by the owner on Nov 11, 2022. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ public class KV<K, V> implements Serializable {
private static final long serialVersionUID = 0;

/** Returns a KV with the given key and value. */
public static <K, V> KV<K, V> of(K key, V value) {
return new KV<>(key, value);
public static <K, SK extends K, V, SV extends V> KV<K, V> of(SK key, SV value) {
return new KV<K, V>(key, value);
}

/** Returns the key of this KV. */
Expand Down