public class IntStreams extends Object
IntStream
.
Only a factory for now but could hold other functionality.
Constructor and Description |
---|
IntStreams() |
Modifier and Type | Method and Description |
---|---|
static IntStream |
range(int endExclusive)
Shorthand for
IntStream.range(0, i) . |
static IntStream |
rangeClosed(int endInclusive)
Shorthand for
IntStream.rangeClosed(0, i) . |
public IntStreams()
public static IntStream range(int endExclusive)
IntStream.range(0, i)
.endExclusive
- the exclusive upper bound.IntStream
for the range of int
elements.public static IntStream rangeClosed(int endInclusive)
IntStream.rangeClosed(0, i)
.endInclusive
- the inclusive upper bound.IntStream
for the range of int
elements.Copyright © 2001–2023 The Apache Software Foundation. All rights reserved.