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

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

There is a newer version: 15.1.0.Dev04
Show newest version
package org.infinispan.commons.util;

import java.util.Set;

/**
 * Adapts {@link Set} to {@link CloseableIteratorSet}
 *
 * @author Radim Vansa <[email protected]>
 */
public class CloseableIteratorSetAdapter extends CloseableIteratorCollectionAdapter implements CloseableIteratorSet {
   public CloseableIteratorSetAdapter(Set delegate) {
      super(delegate);
   }

   @Override
   public CloseableSpliterator spliterator() {
      return Closeables.spliterator(delegate.spliterator());
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy