/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package hw10; /** * * @author kvaradar */ public class LocAwareEntry implements Entry { 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;} }