@ Override public boolean addAll ( Collection < ? extends Integer > c ) { Iterator < ? extends Integer > iter = c . iterator ( ) ; boolean didOne = false ; while ( iter . hasNext ( ) ) { add ( iter . next ( ) . intValue ( ) ) ; didOne = true ; } return didOne ; }
Adds all of the elements in the specified Collection and sorts during the add . This may operate slowly as it is the same as individual calls to the add method .