src/org/kocakosm/pitaya/collection/ImmutableList.java
public static <E> List<E> copyOf(Iterator<? extends E> i)
	{
		return new ImmutableList<E>(Iterators.toList(i));
	}
public static <E> List<E> copyOf(Iterator<? extends E> i)
	{
		return new ImmutableList<E>(Iterators.toList(i));
	}
Creates a new {@code ImmutableList} from the given {@code Iterator}.

@param <E> the type of the {@code List}'s elements.
@param i the source {@code Iterator}.

@return the created {@code ImmutableList}.

@throws NullPointerException if {@code i} is {@code null}.