public FlowCount<B> count() { return then(new FlowCount<B>()); }
@Test public void test_of_iterable() { List<Integer> list = new ArrayList<Integer>(); list.add(1); list.add(2); list.add(3); int result = Flow.of(list).count().get(); Assert.assertEquals(3, result); }
@Test public void test_count() { int result = Flow.of(1, 2, 3, 4, 5, 6).count().get(); Assert.assertEquals(6, result); }
public FlowCount<B> count() { return then(new FlowCount<B>()); }