com.atlassian.jira.util.collect
Class CloseableIterator.ListResolver<T>
java.lang.Object
com.atlassian.jira.util.collect.CloseableIterator.ListResolver<T>
- Enclosing interface:
- CloseableIterator<E>
public static class CloseableIterator.ListResolver<T>
- extends Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CloseableIterator.ListResolver
public CloseableIterator.ListResolver()
get
public List<T> get(CloseableIterator<T> it)
- Get an
ArrayList
of the contents of the supplied CloseableIterator
- Returns:
- a mutable
ArrayList
containing all elements of the iterator.
Copyright © 2002-2011 Atlassian. All Rights Reserved.