leanback/src/main/java/androidx/leanback/widget/CursorObjectAdapter.java
public Cursor swapCursor(Cursor cursor) {
        if (cursor == mCursor) {
            return mCursor;
        }
        Cursor oldCursor = mCursor;
        mCursor = cursor;
        mItemCache.trimToSize(0);
        onCursorChanged();
        return oldCursor;
    }
/**
     * Swap in a new Cursor, returning the old Cursor. Unlike changeCursor(Cursor),
     * the returned old Cursor is not closed.
     *
     * @param cursor The new cursor to be used.
     */
Swap in a new Cursor, returning the old Cursor. Unlike changeCursor(Cursor),
the returned old Cursor is not closed.

@param cursor The new cursor to be used.
Swap in a new Cursor returning the old Cursor . Unlike changeCursor ( Cursor ) the returned old Cursor is not closed . @param cursor The new cursor to be used .
public Cursor swapCursor(Cursor cursor) {
        if (cursor == mCursor) {
            return mCursor;
        }
        Cursor oldCursor = mCursor;
        mCursor = cursor;
        mItemCache.trimToSize(0);
        onCursorChanged();
        return oldCursor;
    }
public Cursor swapCursor ( Cursor cursor ) { if ( cursor == mCursor ) { return mCursor ; } Cursor oldCursor = mCursor ; mCursor = cursor ; mItemCache . trimToSize ( 0 ) ; onCursorChanged ( ) ; return oldCursor ; }
Swap in a new Cursor, returning the old Cursor.
Swap in a new Cursor returning the old Cursor .