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

org.infinispan.util.AbstractDelegatingCloseableIteratorCollection Maven / Gradle / Ivy

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