@Test public void testBufferingSpliteratorFollowedByNonBufferingOne() { SeqBuffer<Integer> buffer = buffer(); assertEquals(list, buffer.seq().toList()); assertEquals(list, buffer.seq().toList()); }
Seq<T> seq() { return Seq.seq(new BufferSpliterator()); }
SeqBuffer { Seq<T> seq() { return Seq.seq(new BufferSpliterator()); } }
SeqBuffer { Seq<T> seq() { return Seq.seq(new BufferSpliterator()); } private  SeqBuffer(Spliterator<T> source); }
SeqBuffer { Seq<T> seq() { return Seq.seq(new BufferSpliterator()); } private  SeqBuffer(Spliterator<T> source);  }
SeqBuffer { Seq<T> seq() { return Seq.seq(new BufferSpliterator()); } private  SeqBuffer(Spliterator<T> source);   }