org.infinispan.commons.util.CloseableIteratorCollection Maven / Gradle / Ivy
package org.infinispan.commons.util;
import java.util.Collection;
/**
* A collection that defines an iterator method that returns a {@link CloseableIterator}
* instead of a non closeable one. This is needed so that iterators can be properly cleaned up. All other
* methods will internally clean up any iterators created and don't have other side effects.
*
* @author wburns
* @since 7.0
*/
public interface CloseableIteratorCollection extends Collection {
@Override
CloseableIterator iterator();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy