Reusable Simple Key-Value Pair Java Class