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
public class YourDataClass {
private String messageType;
private Timestamp timestamp;
private int count;
private int version;
// your get/setters
...........
}