All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.commons.util.CloseableIteratorCollection Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
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