Code example for SortedMap

Methods: put

0
 
class DatabaseHelper extends SQLiteOpenHelper {
	private static final SortedMap<Integer, Migration> ALL_MIGRATIONS = new TreeMap<Integer, Migration>();
 
	static { 
		ALL_MIGRATIONS.put(1, new V1Migration());
		ALL_MIGRATIONS.put(9, new V9Migration());
		ALL_MIGRATIONS.put(10, new V10Migration());
		ALL_MIGRATIONS.put(11, new V11Migration());
		ALL_MIGRATIONS.put(12, new V12Migration());
		ALL_MIGRATIONS.put(13, new V13Migration());
		ALL_MIGRATIONS.put(14, new V14Migration());
		ALL_MIGRATIONS.put(15, new V15Migration());
		ALL_MIGRATIONS.put(16, new V16Migration());
	} 
 
    private Context mContext;
 
	DatabaseHelper(Context context) {
		super(context, AbstractCollectionProvider.cDatabaseName, null, AbstractCollectionProvider.cDatabaseVersion);
        mContext = context;