feat: new pair with 'of' method

This commit is contained in:
easepan 2020-09-09 11:59:33 +08:00
parent 5aa10c06ee
commit 5440cff37f

View File

@ -20,6 +20,10 @@ public class Pair<K, V> extends CloneSupport<Pair<K, V>> implements Serializable
private final K key;
private final V value;
public static <K, V> Pair<K, V> of(K key, V value) {
return new Pair<>(key, value);
}
/**
* 构造
*