3

Google Collections has an Iterables utility class for taking in a collection and iterable and putting all the elements from iterable into the collection, called addAll. Is there something similar when all you have is an iterator?

4

1 に答える 1

11

はい、当然のことながら と呼ばれていIterators.addAll(Collection, Iterator)ます。

于 2010-02-12T18:41:26.523 に答える