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

org.infinispan.stream.impl.intops.primitive.i.BoxedIntOperation Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
package org.infinispan.stream.impl.intops.primitive.i;

import org.infinispan.stream.impl.intops.IntermediateOperation;

import java.util.stream.IntStream;
import java.util.stream.Stream;

/**
 * Performs boxed operation on a {@link IntStream}
 */
public class BoxedIntOperation implements IntermediateOperation> {
   private static final BoxedIntOperation OPERATION = new BoxedIntOperation();
   private BoxedIntOperation() { }

   public static BoxedIntOperation getInstance() {
      return OPERATION;
   }

   @Override
   public Stream perform(IntStream stream) {
      return stream.boxed();
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy