Skip to content

Instantly share code, notes, and snippets.

@rexim
Created October 13, 2018 14:05
Show Gist options
  • Save rexim/5eb0d7cc4e352ab6618d7eeb6044db0e to your computer and use it in GitHub Desktop.
Save rexim/5eb0d7cc4e352ab6618d7eeb6044db0e to your computer and use it in GitHub Desktop.
import java.util.*;
public class Homie<K, V> {
public Homie() {
this.backend = new HashMap<>();
}
public void insertValue(K key, V value) {
this.backend.put(key, value);
}
public V selectValue(K key) {
return this.backend.get(key);
}
private HashMap<K, V> backend;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment