org.geotools.index
Interface CloseableCollection<T>

All Superinterfaces:
java.util.Collection<T>, java.lang.Iterable<T>
All Known Implementing Classes:
CloseableArrayList, LazySearchCollection

public interface CloseableCollection<T>
extends java.util.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(java.util.Iterator<T> iter)
          Close the collection so it cleans up its resources
 
Methods inherited from interface java.util.Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Method Detail

close

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

Throws:
java.io.IOException

closeIterator

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

Throws:
java.io.IOException


Copyright © 1996-2010 Geotools. All Rights Reserved.