mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
feat: new pair with 'of' method
This commit is contained in:
@@ -20,6 +20,10 @@ public class Pair<K, V> extends CloneSupport<Pair<K, V>> implements Serializable
|
|||||||
private final K key;
|
private final K key;
|
||||||
private final V value;
|
private final V value;
|
||||||
|
|
||||||
|
public static <K, V> Pair<K, V> of(K key, V value) {
|
||||||
|
return new Pair<>(key, value);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 构造
|
* 构造
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user