Class LimitOperation<S>
- java.lang.Object
-
- org.infinispan.stream.impl.intops.object.LimitOperation<S>
-
- All Implemented Interfaces:
IntermediateOperation<S,Stream<S>,S,Stream<S>>
public class LimitOperation<S> extends Object implements IntermediateOperation<S,Stream<S>,S,Stream<S>>
Performs limit operation on a regularStream
-
-
Constructor Summary
Constructors Constructor Description LimitOperation(long limit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getLimit()
Stream<S>
perform(Stream<S> stream)
Performs the actualy intermediate operation returning the resulting stream-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.infinispan.stream.impl.intops.IntermediateOperation
handleInjection
-
-
-
-
Method Detail
-
perform
public Stream<S> perform(Stream<S> stream)
Description copied from interface:IntermediateOperation
Performs the actualy intermediate operation returning the resulting stream
-
getLimit
public long getLimit()
-
-