package com.sook.android.repository;

import android.content.Context;
import android.content.SharedPreferences;

abstract public class AbstractRepository {
	
	private SharedPreferences mSharedPreferences;

	public AbstractRepository(Context context) {
		mSharedPreferences = context.getSharedPreferences(
				getSharedPreferencesName(), Context.MODE_PRIVATE);
	}
	
	protected SharedPreferences getSharedPreferences() {
		return mSharedPreferences;
	}
	
	protected SharedPreferences.Editor getEditor() {
		return mSharedPreferences.edit();
	}
	
	public void delete() {
		SharedPreferences.Editor editor = getEditor();
		editor.clear();
		editor.commit();
	}

	abstract protected String getSharedPreferencesName();
}

@@ -651,16 +651,175 @@
 ();%0A%09%7D%0A%0A
+%09public void saveBoolean(String key, Boolean value) %7B%0A%09%09SharedPreferences.Editor editor = getEditor();%0A%09%09editor.putBoolean(key, value);%0A%09%09editor.commit();%0A%09%7D%0A%0A
 %09abstrac

Create saveBoolean method