K
- 键类型V
- 值类型public class PairObject<K,V> extends Object implements Serializable, Cloneable
Constructor and Description |
---|
PairObject() |
PairObject(K key) |
PairObject(K key,
V value) |
Modifier and Type | Method and Description |
---|---|
static <K,V> PairObject<K,V> |
bind(K key) |
static <K,V> PairObject<K,V> |
bind(K key,
V value) |
boolean |
equals(Object obj) |
K |
getKey() |
V |
getValue() |
int |
hashCode() |
PairObject<K,V> |
setKey(K key) |
PairObject<K,V> |
setValue(V value) |
String |
toString() |
public PairObject()
public PairObject(K key)
public static <K,V> PairObject<K,V> bind(K key)
public static <K,V> PairObject<K,V> bind(K key, V value)
public K getKey()
public PairObject<K,V> setKey(K key)
public V getValue()
public PairObject<K,V> setValue(V value)
Copyright © 2022. All rights reserved.