com.atlassian.jira.util.collect
Interface CloseableIterator<E>

All Superinterfaces:
Closeable, Iterator<E>
All Known Subinterfaces:
IssueIterator

public interface CloseableIterator<E>
extends Iterator<E>, Closeable

For iterators that need to be closed after use. All CloseableIterators should be unmodifiable and throw exceptions if the remove() method is called.

Since:
v3.13

Nested Class Summary
static class CloseableIterator.Functions
           
static class CloseableIterator.ListResolver<T>
          Utility class for transforming a EnclosedIterable into a List.
 
Field Summary
 
Fields inherited from interface com.atlassian.jira.util.Closeable
CLOSE
 
Method Summary
 void remove()
          Unsupported operation.
 
Methods inherited from interface java.util.Iterator
hasNext, next
 
Methods inherited from interface com.atlassian.jira.util.Closeable
close
 

Method Detail

remove

void remove()
Unsupported operation.

Specified by:
remove in interface Iterator<E>
Throws:
UnsupportedOperationException - always


Copyright © 2002-2014 Atlassian. All Rights Reserved.