public final void remove ( final int index ) { AbstractItem removedItem = items . remove ( index ) ; if ( removedItem instanceof Item && ( ( Item ) removedItem ) . getIcon ( ) != null ) { iconCount -- ; } else if ( removedItem instanceof Divider ) { dividerCount -- ; } rawItems = null ; notifyOnDataSetChanged ( ) ; }
Removes the item at a specific index .