public static < T > void addAll ( Collection < T > collection , Iterable < ? extends T > items ) { for ( T item : items ) { collection . add ( item ) ; } }
Add all the items from an iterable to a collection .