/guava/android/guava/src/com/google/common/collect/Iterators.java
checkNotNull( iterators, "iterators") ;checkNotNull( addTo) ;
checkNotNull ( addTo ) ;
List<T> list = Lists.newArrayList(iterator); return Iterables.<T>toArray(list, type); } @CanIgnoreReturnValue public static <T extends @Nullable Object> boolean addAll( Collection<T> addTo, Iterator<? extends T> iterator) { <extra_id_0> checkNotNull(iterator); boolean wasModified = false; while (iterator.hasNext()) { wasModified |= addTo.add(iterator.next()); } return wasModified;