leanback/src/main/java/androidx/leanback/widget/SparseArrayObjectAdapter.java
public void clear() {
        final int itemCount = mItems.size();
        if (itemCount == 0) {
            return;
        }
        mItems.clear();
        notifyItemRangeRemoved(0, itemCount);
    }
/**
     * Removes all items from this adapter, leaving it empty.
     */
Removes all items from this adapter, leaving it empty.
Removes all items from this adapter leaving it empty .
public void clear() {
        final int itemCount = mItems.size();
        if (itemCount == 0) {
            return;
        }
        mItems.clear();
        notifyItemRangeRemoved(0, itemCount);
    }
public void clear ( ) { final int itemCount = mItems . size ( ) ; if ( itemCount == 0 ) { return ; } mItems . clear ( ) ; notifyItemRangeRemoved ( 0 , itemCount ) ; }
Removes all items from this adapter, leaving it empty.
Removes all items from this adapter leaving it empty .