Files
unisa_strutture_dati_2013_2014/priorityqueue/MyEntry.java

38 lines
508 B
Java

package priorityqueue;
/**
* Created with MONSTER.
* User: xgiovio
* Date: 01/04/2014
* Time: 21:00
*/
public class MyEntry<K,V> implements Entry<K,V> {
public MyEntry(K a, V b){
key = a;
value = b;
}
@Override
public K getKey() {
return key;
}
@Override
public V getValue() {
return value;
}
@Override
public String toString() {
return ("" + key + " - " + value);
}
private K key;
private V value;
}