Package com.atlassian.jira.util.collect
Class CloseableIterator.ListResolver<T>
java.lang.Object
com.atlassian.jira.util.collect.CloseableIterator.ListResolver<T>
- Enclosing interface:
CloseableIterator<E>
Utility class for transforming a
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget(CloseableIterator<T> it) Get anArrayListof the contents of the suppliedCloseableIterator
-
Constructor Details
-
ListResolver
public ListResolver()
-
-
Method Details
-
get
Get anArrayListof the contents of the suppliedCloseableIterator- Returns:
- a mutable
ArrayListcontaining all elements of the iterator.
-