Created
October 13, 2018 14:05
-
-
Save rexim/5eb0d7cc4e352ab6618d7eeb6044db0e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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