code: public static <T> List<T> toList(Iterator<? extends T> iterator) {
  		return Lists.newArrayList(iterator);
  	}
docs: Returns a list that contains all the entries of the given iterator in the same order.
  
  @param iterator
  the iterator. May not be <code>null</code>.
  @return a list with the same entries as the given iterator. Never <code>null</code>.