APISonar


com.refactech.driibo.dao.ShotsDataHelper.ShotsDBInfo.JSON

> com > refactech > driibo > dao > ShotsDataHelper > ShotsDBInfo > JSON
com APIs refactech APIs driibo APIs dao APIs ShotsDataHelper APIs ShotsDBInfo APIs JSON APIs

Example 1
public static Shot fromCursor(Cursor cursor) {
        long id = cursor.getLong(cursor.getColumnIndex(ShotsDataHelper.ShotsDBInfo._ID));
        Shot shot = getFromCache(id);
        if (shot != null) {
            return shot;
        }
        shot = new Gson().fromJson(
                cursor.getString(cursor.getColumnIndex(ShotsDataHelper.ShotsDBInfo.JSON)),
                Shot.class);
        addToCache(shot);
        return shot;
    }