Searched defs:endInclusive (Results 1 - 2 of 2) sorted by relevance
/libcore/ojluni/src/main/java/java/util/stream/ |
H A D | IntStream.java | 805 * (inclusive) to {@code endInclusive} (inclusive) by an incremental step of 812 * for (int i = startInclusive; i <= endInclusive ; i++) { ... } 816 * @param endInclusive the inclusive upper bound 820 public static IntStream rangeClosed(int startInclusive, int endInclusive) { argument 821 if (startInclusive > endInclusive) { 825 new Streams.RangeIntSpliterator(startInclusive, endInclusive, true), false);
|
H A D | LongStream.java | 808 * (inclusive) to {@code endInclusive} (inclusive) by an incremental step of 815 * for (long i = startInclusive; i <= endInclusive ; i++) { ... } 819 * @param endInclusive the inclusive upper bound 823 public static LongStream rangeClosed(long startInclusive, final long endInclusive) { argument 824 if (startInclusive > endInclusive) { 826 } else if (endInclusive - startInclusive + 1 <= 0) { 834 BigInteger.valueOf(endInclusive).subtract(BigInteger.valueOf(startInclusive)) 837 return concat(range(startInclusive, m), rangeClosed(m, endInclusive)); 840 new Streams.RangeLongSpliterator(startInclusive, endInclusive, true), false);
|
Completed in 24 milliseconds