public static < T > boolean addAll ( Collection < T > self , Iterable < T > items ) { boolean changed = false ; for ( T next : items ) { if ( self . add ( next ) ) changed = true ; } return changed ; }
Adds all items from the iterable to the Collection .