Guest User

Untitled

a guest
Aug 14th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. Save User Data in a Text File or a Serialized Object
  2. public class Config {
  3.  
  4. private HashMap map;
  5. Congif(HashMap map) { this.map = map; }
  6.  
  7. <T> T get(Class<T> clazz, String key) {
  8. return (T) map.get(key);
  9. }
  10.  
  11. void put(String key, Serializable value) {
  12. map.put(key, value);
  13. }
  14. }
Add Comment
Please, Sign In to add comment