- All Superinterfaces:
- All Known Implementing Classes:
- DatabaseIterable, DecoratingIterable, PagedDatabaseIterable, SharedEntitySearchResult
public interface CloseableIterable
- extends Sized
A limited collection view that may be backed by the something that needs closing, for example a connection to a database. All iterators returned
iterator() must be closed after use in a
CloseableIterator that can be closed once finished with
- Specified by:
size in interface
- the likely size of the objects returned by the
iterator(). Be careful depending on this size being exact, as in many cases
its best efforts value or may be stable due to concurrent changes.
- true if the there is no data behind it. In this case the
iterator().hasNext() will return false;
Copyright © 2002-2008 Atlassian. All Rights Reserved.