01: /*
02: * LICENSE INFORMATION
03: * Copyright 2005-2007 by FZI (http://www.fzi.de).
04: * Licensed under a BSD license (http://www.opensource.org/licenses/bsd-license.php)
05: * <OWNER> = Max Völkel
06: * <ORGANIZATION> = FZI Forschungszentrum Informatik Karlsruhe, Karlsruhe, Germany
07: * <YEAR> = 2007
08: *
09: * Project information at http://semweb4j.org/rdf2go
10: *
11: * IMPROVE: USe Jakarta Commons Collections instead?
12: */
13: package org.ontoware.aifbcommons.collection;
14:
15: /** Implementing this interface allows an object to be the target of
16: * the "foreach" statement.
17: */
18: public interface ClosableIterable<T> extends Iterable<T> {
19:
20: /**
21: * Returns an iterator over a set of elements of type T.
22: *
23: * @return an Iterator.
24: */
25: ClosableIterator<T> iterator();
26: }
|