org.geotools.index
Interface CloseableCollection<T>

All Superinterfaces:
Collection<T>, Iterable<T>
All Known Implementing Classes:
CloseableArrayList, LazySearchCollection

public interface CloseableCollection<T>
extends Collection<T>

Tag interface for collection that must be closed

Author:
jesse

Method Summary
 void close()
          Close the collection so it cleans up its resources
 void closeIterator(Iterator<T> iter)
          Close the collection so it cleans up its resources
 
Methods inherited from interface Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Method Detail

close

void close()
           throws IOException
Close the collection so it cleans up its resources

Throws:
IOException

closeIterator

void closeIterator(Iterator<T> iter)
                   throws IOException
Close the collection so it cleans up its resources

Throws:
IOException


Copyright © 1996-2009 Geotools. All Rights Reserved.