Constructor and Description |
---|
Entry(K firstKey,
T secondKey,
V value) |
Modifier and Type | Method and Description |
---|---|
K |
getFirstKey() |
Pair<K,T> |
getKey()
Returns the key corresponding to this entry.
|
T |
getSecondKey() |
V |
getValue() |
void |
setFirstKey(K firstKey) |
void |
setSecondKey(T secondKey) |
V |
setValue(V value)
Replaces the value corresponding to this entry with the specified
value (optional operation).
|
public K getFirstKey()
public void setFirstKey(K firstKey)
public T getSecondKey()
public void setSecondKey(T secondKey)
public V setValue(V value)
setValue
in interface java.util.Map.Entry<Pair<K,T>,V>
value
- new value to be stored in this entryjava.lang.UnsupportedOperationException
- if the put operation
is not supported by the backing mapjava.lang.ClassCastException
- if the class of the specified value
prevents it from being stored in the backing mapjava.lang.NullPointerException
- if the backing map does not permit
null values, and the specified value is nulljava.lang.IllegalArgumentException
- if some property of this value
prevents it from being stored in the backing mapjava.lang.IllegalStateException
- implementations may, but are not
required to, throw this exception if the entry has been
removed from the backing map.