title: Hashmap holding different data types as values for instance Integer, String and Object
body: <p>I need to create a hashmap with key as integer and it should hold multiple values of different data types. For example if the key is msg id and the values are</p>
  
  <ol>
  <li>message of type string </li>
  <li>timestamp of type time</li>
  <li>count of type integer </li>
  <li>version of type integer </li>
  </ol>
  
  <p>Then how to store the values of different data type with a single key into the hashmap?</p>