public static class CloseableIterator.ListResolver<T> extends Object
EnclosedIterable
into a List
. Generally you only want to do
this when the size of the iterable is small as it loads all the elements into memory.Constructor and Description |
---|
ListResolver() |
Modifier and Type | Method and Description |
---|---|
List<T> |
get(CloseableIterator<T> it)
Get an
ArrayList of the contents of the supplied CloseableIterator |
public List<T> get(CloseableIterator<T> it)
ArrayList
of the contents of the supplied CloseableIterator
ArrayList
containing all elements of the iterator.Copyright © 2002-2015 Atlassian. All Rights Reserved.