mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-29 10:49:37 +08:00
feat: new pair with 'of' method
This commit is contained in:
parent
5aa10c06ee
commit
5440cff37f
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
* 构造
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user