APISonar


me.storm.ninegag.dao.FeedsDataHelper.FeedsDBInfo.JSON

> me > storm > ninegag > dao > FeedsDataHelper > FeedsDBInfo > JSON
me APIs storm APIs ninegag APIs dao APIs FeedsDataHelper APIs FeedsDBInfo APIs JSON APIs

Example 1
public static Feed fromCursor(Cursor cursor) {
        String id = cursor.getString(cursor.getColumnIndex(FeedsDataHelper.FeedsDBInfo.ID));
        Feed feed = getFromCache(id);
        if (feed != null) {
            return feed;
        }
        feed = new Gson().fromJson(
                cursor.getString(cursor.getColumnIndex(FeedsDataHelper.FeedsDBInfo.JSON)),
                Feed.class);
        addToCache(feed);
        return feed;
    }