public static boolean addAll ( LongCollection collection , long [ ] array ) { boolean changed = false ; for ( long element : array ) { changed |= collection . add ( element ) ; } return changed ; }
Add all elements in the array to the collection .