Package org.apache.commons.lang3.stream
Class IntStreams
- java.lang.Object
-
- org.apache.commons.lang3.stream.IntStreams
-
public class IntStreams extends java.lang.ObjectFactory forIntStream.Only a factory for now but could hold other functionality.
- Since:
- 3.13.0
-
-
Constructor Summary
Constructors Constructor Description IntStreams()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.stream.IntStreamrange(int endExclusive)Shorthand forIntStream.range(0, i).static java.util.stream.IntStreamrangeClosed(int endInclusive)Shorthand forIntStream.rangeClosed(0, i).
-
-
-
Method Detail
-
range
public static java.util.stream.IntStream range(int endExclusive)
Shorthand forIntStream.range(0, i).- Parameters:
endExclusive- the exclusive upper bound.- Returns:
- a sequential
IntStreamfor the range ofintelements.
-
rangeClosed
public static java.util.stream.IntStream rangeClosed(int endInclusive)
Shorthand forIntStream.rangeClosed(0, i).- Parameters:
endInclusive- the inclusive upper bound.- Returns:
- a sequential
IntStreamfor the range ofintelements.
-
-