Java tutorial
import java.util.HashMap; import java.util.Map; public class Main { public static void main(String... args) { Map<String, MyData> map = new HashMap<String, MyData>(); map.put("A", new MyData()); System.out.println(map); } } class MyData { String theString; byte[] theBitmap; int theInt; }