org.infinispan.util.AbstractDelegatingCloseableIteratorCollection Maven / Gradle / Ivy
package org.infinispan.util;
import org.infinispan.commons.util.CloseableIterator;
import org.infinispan.commons.util.CloseableIteratorCollection;
import org.infinispan.commons.util.CloseableSpliterator;
/**
* Delegating collection that produces closeable iterators and spliterators from the collection returned from
* {@link AbstractDelegatingCloseableIteratorCollection#delegate()} method.
* @param The type in the collection
*/
public abstract class AbstractDelegatingCloseableIteratorCollection extends AbstractDelegatingCollection
implements CloseableIteratorCollection {
protected abstract CloseableIteratorCollection delegate();
@Override
public CloseableIterator iterator() {
return delegate().iterator();
}
@Override
public CloseableSpliterator spliterator() {
return delegate().spliterator();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy