Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.infinispan.commons.util;
Interface that provides semantics of a java.util.Iterator and java.lang.AutoCloseable interfaces. This is useful when you have data that must be iterated on and may hold resources in the underlying implementation that must be closed.

Some implementations may close resources automatically when the iterator is finished being iterated on however this is an implementation detail and all callers should call java.lang.AutoCloseable.close() method to be sure all resources are freed properly.

public interface CloseableIterator<E> extends AutoCloseableIterator<E> {
   void close();
New to GrepCode? Check out our FAQ X