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

package adaptablepriorityqueue;

/**
 *
 * @author kvaradar
 */
public class LocAwareEntry<K,V> implements Entry<K,V> {

    protected K k; //key
    protected V v; //value
    protected int loc; //location in arraylist
    public LocAwareEntry(K key, V value, int l) {
        k = key;
        v = value;
        loc = l;
    }

    public K getKey() {return k;}
    public V getValue() {return v;}
    public int getLoc() {return loc;}
    void setKey(K k1) {k = k1;}

    void setValue(V v1) {v = v1;}

    void setLoc(int l) {loc = l;}


}
