205 |
|
* @param key key with which the specified value is to be associated. |
206 |
|
* @param value value to be associated with the specified key. |
207 |
|
* |
208 |
< |
* @return previous value associated with specified key, or <tt>null</tt> |
208 |
> |
* @return the previous value associated with specified key, or <tt>null</tt> |
209 |
|
* if there was no mapping for key. (A <tt>null</tt> return can |
210 |
|
* also indicate that the map previously associated <tt>null</tt> |
211 |
|
* with the specified key, if the implementation supports |
247 |
|
* mapping for the specified key. |
248 |
|
* |
249 |
|
* @param key key whose mapping is to be removed from the map. |
250 |
< |
* @return previous value associated with specified key, or <tt>null</tt> |
250 |
> |
* @return the previous value associated with specified key, or <tt>null</tt> |
251 |
|
* if there was no entry for key. (A <tt>null</tt> return can |
252 |
|
* also indicate that the map previously associated <tt>null</tt> |
253 |
|
* with the specified key, if the implementation supports |
664 |
|
* |
665 |
|
* @param entry the entry to copy. |
666 |
|
*/ |
667 |
< |
public SimpleEntry(Entry<K,V> entry) { |
667 |
> |
public SimpleEntry(Entry<? extends K, ? extends V> entry) { |
668 |
|
this.key = entry.getKey(); |
669 |
|
this.value = entry.getValue(); |
670 |
|
} |
692 |
|
* value. |
693 |
|
* |
694 |
|
* @param value new value to be stored in this entry. |
695 |
< |
* @return old value corresponding to the entry. |
695 |
> |
* @return the old value corresponding to the entry. |
696 |
|
*/ |
697 |
|
public V setValue(V value) { |
698 |
|
V oldValue = this.value; |
754 |
|
* |
755 |
|
* @param entry the entry to copy. |
756 |
|
*/ |
757 |
< |
public SimpleImmutableEntry(Entry<K,V> entry) { |
757 |
> |
public SimpleImmutableEntry(Entry<? extends K, ? extends V> entry) { |
758 |
|
this.key = entry.getKey(); |
759 |
|
this.value = entry.getValue(); |
760 |
|
} |