public T find(String id) {
        SharedPreferences prefs = loadSharedPreferences("object");

        JSONObject object = null;

        try {
            String json = prefs.getString(String.valueOf(id), null);

            if (json == null) return null;

            object = new JSONObject(json);

        } catch (JSONException e) {
            e.printStackTrace();
        }

        return fromJson(object);
    }
public T find ( String id ) { SharedPreferences prefs = loadSharedPreferences ( "object" ) ; JSONObject object = null ; try { String json = prefs . getString ( String . valueOf ( id ) , null ) ; if ( json == null ) return null ; object = new JSONObject ( json ) ; } catch ( JSONException e ) { e . printStackTrace ( ) ; } return fromJson ( object ) ; }
Find a specific object from its id.

TODO: Figure out how to make this accesible without...
creating a dummy instance.

@param id Object's id.
@return The object if found, null otherwise.
@throws com.mauriciogiordano.easydb.exception.NoContextFoundException in case of null context.