Code example for Map.Entry

Methods: getKey, getValue

0
	 *  
	 * @param entry 
	 *          the entry to copy 
	 */ 
	public OSimpleImmutableEntry(final Entry<? extends K, ? extends V> entry) {
		this.key = entry.getKey();
		this.value = entry.getValue();
	} 
 
	/** 
	 * Returns the key corresponding to this entry. 
	 *  
	 * @return the key corresponding to this entry 
	 */ 
	public K getKey() { 
		return key;
	} 
 
	/** 
	 * Returns the value corresponding to this entry.