Java Code Examples for java.util.stream.LongStream#Builder
The following examples show how to use
java.util.stream.LongStream#Builder .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: StreamBuilderTest.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
@Test(dataProvider = "sizes") public void testLongAfterBuilding(int size) { LongStream.Builder sb = LongStream.builder(); LongStream.range(0, size).forEach(sb); sb.build(); checkISE(() -> sb.accept(1)); checkISE(() -> sb.add(1)); checkISE(() -> sb.build()); }
Example 2
Source File: StreamBuilderTest.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
@Test(dataProvider = "sizes") public void testLongAfterBuilding(int size) { LongStream.Builder sb = LongStream.builder(); LongStream.range(0, size).forEach(sb); sb.build(); checkISE(() -> sb.accept(1)); checkISE(() -> sb.add(1)); checkISE(() -> sb.build()); }
Example 3
Source File: StreamBuilderTest.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
@Test(dataProvider = "sizes") public void testLongAfterBuilding(int size) { LongStream.Builder sb = LongStream.builder(); LongStream.range(0, size).forEach(sb); sb.build(); checkISE(() -> sb.accept(1)); checkISE(() -> sb.add(1)); checkISE(() -> sb.build()); }
Example 4
Source File: StreamBuilderTest.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
@Test(dataProvider = "sizes") public void testLongAfterBuilding(int size) { LongStream.Builder sb = LongStream.builder(); LongStream.range(0, size).forEach(sb); sb.build(); checkISE(() -> sb.accept(1)); checkISE(() -> sb.add(1)); checkISE(() -> sb.build()); }
Example 5
Source File: StreamBuilderTest.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
@Test(dataProvider = "sizes") public void testLongAfterBuilding(int size) { LongStream.Builder sb = LongStream.builder(); LongStream.range(0, size).forEach(sb); sb.build(); checkISE(() -> sb.accept(1)); checkISE(() -> sb.add(1)); checkISE(() -> sb.build()); }
Example 6
Source File: StreamBuilderTest.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@Test(dataProvider = "sizes") public void testLongAfterBuilding(int size) { LongStream.Builder sb = LongStream.builder(); LongStream.range(0, size).forEach(sb); sb.build(); checkISE(() -> sb.accept(1)); checkISE(() -> sb.add(1)); checkISE(() -> sb.build()); }
Example 7
Source File: StreamBuilderTest.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
@Test(dataProvider = "sizes") public void testLongAfterBuilding(int size) { LongStream.Builder sb = LongStream.builder(); LongStream.range(0, size).forEach(sb); sb.build(); checkISE(() -> sb.accept(1)); checkISE(() -> sb.add(1)); checkISE(() -> sb.build()); }
Example 8
Source File: StreamBuilderTest.java From hottub with GNU General Public License v2.0 | 5 votes |
@Test(dataProvider = "sizes") public void testLongAfterBuilding(int size) { LongStream.Builder sb = LongStream.builder(); LongStream.range(0, size).forEach(sb); sb.build(); checkISE(() -> sb.accept(1)); checkISE(() -> sb.add(1)); checkISE(() -> sb.build()); }
Example 9
Source File: StreamBuilderTest.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
@Test(dataProvider = "sizes") public void testLongAfterBuilding(int size) { LongStream.Builder sb = LongStream.builder(); LongStream.range(0, size).forEach(sb); sb.build(); checkISE(() -> sb.accept(1)); checkISE(() -> sb.add(1)); checkISE(() -> sb.build()); }
Example 10
Source File: StreamBuilderTest.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
@Test(dataProvider = "sizes") public void testLongAfterBuilding(int size) { LongStream.Builder sb = LongStream.builder(); LongStream.range(0, size).forEach(sb); sb.build(); checkISE(() -> sb.accept(1)); checkISE(() -> sb.add(1)); checkISE(() -> sb.build()); }
Example 11
Source File: StreamBuilderTest.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
@Test(dataProvider = "sizes") public void testLongAfterBuilding(int size) { LongStream.Builder sb = LongStream.builder(); LongStream.range(0, size).forEach(sb); sb.build(); checkISE(() -> sb.accept(1)); checkISE(() -> sb.add(1)); checkISE(() -> sb.build()); }
Example 12
Source File: RollingOfLongSpliterator.java From streams-utils with Apache License 2.0 | 5 votes |
private LongStream buildSubstream() { LongStream.Builder subBuilder = LongStream.builder() ; for (int i = 0 ; i < grouping ; i++) { subBuilder.add(buffer[(i + bufferReadIndex.get()) % buffer.length]) ; } bufferReadIndex.incrementAndGet() ; return subBuilder.build() ; }
Example 13
Source File: StreamBuilderTest.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
@Test(dataProvider = "sizes") public void testLongAfterBuilding(int size) { LongStream.Builder sb = LongStream.builder(); LongStream.range(0, size).forEach(sb); sb.build(); checkISE(() -> sb.accept(1)); checkISE(() -> sb.add(1)); checkISE(() -> sb.build()); }
Example 14
Source File: StreamBuilderTest.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
@Test(dataProvider = "sizes") public void testLongAfterBuilding(int size) { LongStream.Builder sb = LongStream.builder(); LongStream.range(0, size).forEach(sb); sb.build(); checkISE(() -> sb.accept(1)); checkISE(() -> sb.add(1)); checkISE(() -> sb.build()); }