1

Android HashMap of <String, Object> or <String, String>

view story
linux-howto

http://stackoverflow.com – I apologize if the seems trivial but i always get confused on proper programming techniques. Sometimes there are too many ways to do one thing. I have a HashMap <String, String> to store most of my data. i have a double that i would like to store in the same Map. My question is If possible is it better to convert the non string to a string and store it in the current data structure or Would it be better to Store a HashMap<String, Object> and cast the data accordingly when it gets used? In this example would it be better to convert the double to a String to store in the HashMap (HowTos)