Code example for Map.Entry

Methods: getKey, getValue

0
		this.key = key;
		this.value = value;
	} 
 
	public SimpleEntry(Entry<K, V> e) {
		this.key = e.getKey();
		this.value = e.getValue();
	} 
 
	public K getKey() { 
		return key;
	} 
 
	public V getValue() { 
		return value;
	} 
 
	public V setValue(V value) {
		V oldValue = this.value;
		this.value = value;
		return oldValue;