All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dooapp.gaedo.utils.Entry Maven / Gradle / Ivy

package com.dooapp.gaedo.utils;

import java.util.Map;

/**
 * Local implementation of entry outside a map
 * @author ndx
 *
 * @param 
 * @param 
 */
public class Entry implements Map.Entry {

	private K key;
	private V value;

	public Entry(K key, V value) {
		super();
		this.key = key;
		this.value = value;
	}

	@Override
	public K getKey() {
		return key;
	}

	@Override
	public V getValue() {
		return value;
	}

	@Override
	public V setValue(V value) {
		V old = this.value;
		this.value = value;
		return old;
	}
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy