org.infinispan.stream.impl.intops.object.SkipOperation Maven / Gradle / Ivy
package org.infinispan.stream.impl.intops.object;
import java.util.stream.Stream;
import org.infinispan.stream.impl.intops.IntermediateOperation;
/**
* Performs skip operation on a regular {@link Stream}
*/
public class SkipOperation implements IntermediateOperation, S, Stream> {
private final long n;
public SkipOperation(long n) {
this.n = n;
}
@Override
public Stream perform(Stream stream) {
return stream.skip(n);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy