@Test public void testLazyCollection(){ Collection<Integer> col = of(1,2,3,4,5) .peek(System.out::println).to() .lazyCollection(); System.out.println("takeOne!"); col.forEach(System.out::println); assertThat(col.size(),equalTo(5)); }
@Test public void testLazy(){ Collection<Integer> col = of(1,2,3,4,5) .to() .lazyCollection(); System.out.println("takeOne!"); col.forEach(System.out::println); assertThat(col.size(),equalTo(5)); } @Test
@Test public void testLazyCollection(){ Collection<Integer> col = of(1,2,3,4,5) .to() .lazyCollection(); System.out.println("takeOne!"); col.forEach(System.out::println); assertThat(col.size(),equalTo(5)); } public void testFoldLeft() {
@Test public void testLazyCollection(){ Collection<Integer> col = Spouts.of(1,2,3,4,5) .peek(System.out::println).to() .lazyCollection(); System.out.println("takeOne!"); col.forEach(System.out::println); assertThat(col.size(),equalTo(5)); }
@Test public void testLazyCollection(){ Collection<Integer> col = Spouts.of(1,2,3,4,5) .peek(System.out::println).to() .lazyCollection(); System.out.println("takeOne!"); col.forEach(System.out::println); assertThat(col.size(),equalTo(5)); }
/** @Test public void splitBy(){ assertThat( of(1, 2, 3, 4, 5, 6).stream().splitBy(i->i<4).v1.toList(),equalTo(of(1,2,3))); assertThat( of(1, 2, 3, 4, 5, 6).splitBy(i->i<4).v2.toList(),equalTo(of(4,5,6))); } **/ @Test public void testLazy(){ Collection<Integer> col = of(1,2,3,4,5) .peek(System.out::println).to() .lazyCollection(); System.out.println("takeOne!"); col.forEach(System.out::println); assertThat(col.size(),equalTo(5)); } @Test
@Test public void testLazy(){ Collection<Integer> col = Spouts.of(1,2,3,4,5) .peek(System.out::println).to() .lazyCollection(); System.out.println("takeOne!"); col.forEach(System.out::println); assertThat(col.size(),equalTo(5)); } @Test
@Test public void testLazy(){ Collection<Integer> col = of(1,2,3,4,5) .peek(System.out::println).to() .lazyCollection(); System.out.println("takeOne!"); col.forEach(System.out::println); assertThat(col.size(),equalTo(5)); } @Test
@Test public void testLazy(){ Collection<Integer> col = of(1,2,3,4,5) .peek(System.out::println).to() .lazyCollection(); System.out.println("takeOne!"); col.forEach(System.out::println); assertThat(col.size(),equalTo(5)); } @Test
@Test public void testLazyCollection(){ Collection<Integer> col = of(1,2,3,4,5) .peek(System.out::println).to() .lazyCollection(); System.out.println("takeOne!"); col.forEach(System.out::println); assertThat(col.size(),equalTo(5)); }
@Test public void testLazy(){ Collection<Integer> col = Spouts.of(1,2,3,4,5) .peek(System.out::println).to() .lazyCollection(); System.out.println("takeOne!"); col.forEach(System.out::println); assertThat(col.size(),equalTo(5)); } @Test
@Test public void testLazyCollection(){ Collection<Integer> col = Streamable.of(1,2,3,4,5) .peek(System.out::println).to() .lazyCollection(); System.out.println("takeOne!"); col.forEach(System.out::println); assertThat(col.size(),equalTo(5)); }
@Test public void testLazyCollection(){ Collection<Integer> col = of(1,2,3,4,5) .peek(System.out::println).to() .lazyCollection(); System.out.println("takeOne!"); col.forEach(System.out::println); assertThat(col.size(),equalTo(5)); }
@Test public void testLazy(){ Collection<Integer> col = of(1,2,3,4,5) .peek(System.out::println).to() .lazyCollection(); System.out.println("takeOne!"); col.forEach(System.out::println); assertThat(col.size(),equalTo(5)); } @Test
@Test public void testLazyCollection(){ Collection<Integer> col = of(1,2,3,4,5) .peek(System.out::println).to() .lazyCollection(); System.out.println("takeOne!"); col.forEach(System.out::println); assertThat(col.size(),equalTo(5)); }
@Test public void testLazy(){ Collection<Integer> col = Streamable.of(1,2,3,4,5) .peek(System.out::println).to() .lazyCollection(); System.out.println("takeOne!"); col.forEach(System.out::println); assertThat(col.size(),equalTo(5)); } @Test
@Test public void testLazy(){ Collection<Integer> col = ReactiveSeq.of(1,2,3,4,5) .peek(System.out::println).to() .lazyCollection(); System.out.println("takeOne!"); col.forEach(System.out::println); assertThat(col.size(),equalTo(5)); }