public static class

CloseableIterator.ListResolver

extends Object
java.lang.Object
   ↳ com.atlassian.jira.util.collect.CloseableIterator.ListResolver<T>

Class Overview

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.

Summary

Public Constructors
CloseableIterator.ListResolver()
Public Methods
List<T> get(CloseableIterator<T> it)
Get an ArrayList of the contents of the supplied CloseableIterator
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CloseableIterator.ListResolver ()

Public Methods

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.