Java: why does Collection.addAll can not accept Iterables?

Viewed 10520

I wonder why the Collection.addAll() method only accepts other Collections but not Iterables. Why is that?

Any similar method to do that for Iterables?

5 Answers
Related