Code example for SparseArray

Methods: delete, get, put

0
                    type = Void.class;break;
                case Cursor.FIELD_TYPE_BLOB:
                    type = (byte[].class);break;
            } 
 
            if (store.get(index) == null)
                store.put(index, new cursorPropAccessor((Class<Object>)type, index));
            else if (!store.get(index).getType().equals(type))//takes care of null columns
            { 
                store.delete(index);
                store.put(index, new cursorPropAccessor((Class<Object>)type, index));
            } 
            return store.get(index);
        } 
 
        public internalCursorWrapper(Cursor cursor)
        { 
            super(cursor);
        } 
    }