/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package homework7;

/**
 *
 * @author kvaradar
 */
public class MyEntryClass<K,V> implements MyEntry<K,V> {
    protected K key;
    protected V value;

    public MyEntryClass(K k, V v) {
        key = k;
        value = v;
    }

    public K getKey() {
        return key;
    }

    public V getValue() {
        return value;
    }

    public V setValue(V v) {
        V temp = value;
        value = v;
        return temp;
    }
}
