* @deprecated Replaced by {@link Collection#addAll(java.util.Collection<? extends E>)}
public static <E> void addAll(Collection<E> collection, Iterator<? extends E> iterator) {
I am interested to know how this deprecation explanation actually means something useful. I have an Iterator (or generally Iterable). I want to get it into a Collection.
How does Collection#addAll(java.util.Collection) help here?
Can this be un-deprecated and CollectionUtils.addAll(Iterable) be added as well?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
* @deprecated Replaced by {@link Collection#addAll(java.util.Collection<? extends E>)}
public static <E> void addAll(Collection<E> collection, Iterator<? extends E> iterator) {
I am interested to know how this deprecation explanation actually means something useful. I have an Iterator (or generally Iterable). I want to get it into a Collection.
How does Collection#addAll(java.util.Collection) help here?
Can this be un-deprecated and CollectionUtils.addAll(Iterable) be added as well?