package tsp.hashmap;

public class HashMap<K, V> implements Map<K, V> {
    //...

    public V get(K key) {
        return getList(key).get(key);
    }

    public boolean put(K key, V value) {
        boolean wasInMap = getList(key).put(key, value);
        return wasInMap;
    }

    public boolean remove(K key) {
        boolean wasInMap = getList(key).remove(key);
        return wasInMap;
    }
}
