@ Override public boolean remove ( int element ) { if ( element < 0 ) { throw new IndexOutOfBoundsException ( "element < 0: " + element ) ; } int index = findElementOrEmpty ( element ) ; if ( index < 0 ) { return false ; } cells [ index ] = REMOVED ; modCount ++ ; size -- ; return true ; }
Removes the specified element from the set .