Android Utililty Methods Iterator to List Convert

List of utility methods to do Iterator to List Convert

Description

The list of methods to do Iterator to List Convert are organized into topic(s).

Method

voidaddToList(Iterator itor, List list)
add To List
while (itor.hasNext()) {
    list.add(itor.next());
ListcopyIterator(Iterator iter)
Copies the iterator object into the List(ArrayList) of the specific generic type
List<T> copy = new ArrayList<T>();
while (iter.hasNext())
    copy.add(iter.next());
return copy;