public void collapse(final int position) {
        long itemId = getItemId(position);
        if (!mExpandedIds.contains(itemId)) {
            return;
        }

        toggle(position);
    }
public void collapse(final int position) {
        long itemId = getItemId(position);
        if (!mExpandedIds.contains(itemId)) {
            return;
        }

        toggle(position);
    }
public void collapse ( final int position ) { long itemId = getItemId ( position ) ; if ( ! mExpandedIds . contains ( itemId ) ) { return ; } toggle ( position ) ; }
Collapse the view at given position. Will do nothing if the view is already collapsed.

@param position the position to collapse.
Collapse the view at given position . Will do nothing if the view is already collapsed .