Code example for SparseArray

0
    private final Configuration mConfiguration = new Configuration();
     
    public final static class Package { 
        public final Context context;
        private final SparseArray<HashMap<int[], Entry>> mMap
                = new SparseArray<HashMap<int[], Entry>>();
         
        public Package(Context c) {
            context = c;
        } 
    } 
     
    public final static class Entry { 
        public final Context context;
        public final TypedArray array;
         
        public Entry(Context c, TypedArray ta) {
            context = c;
            array = ta;
        } 
    }