com.atlassian.jira.util.collect
Class CloseableIterator.ListResolver<T>

java.lang.Object
  extended by com.atlassian.jira.util.collect.CloseableIterator.ListResolver<T>
Enclosing interface:
CloseableIterator<E>

public static class CloseableIterator.ListResolver<T>
extends java.lang.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.


Constructor Summary
CloseableIterator.ListResolver()
           
 
Method Summary
 java.util.List<T> get(CloseableIterator<T> it)
          Get an ArrayList of the contents of the supplied CloseableIterator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CloseableIterator.ListResolver

public CloseableIterator.ListResolver()
Method Detail

get

public java.util.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-2010 Atlassian. All Rights Reserved.