@Test public void stream() { assertThat(seq.stream().collect(Collectors.toList()), contains(new Integer(1), 3, 5, 7, 9)); }
@Override public Stream<T> stream() { return StreamSupport.stream(this::spliterator, spliteratorCharacteristics(), false); }
SortedObjectSequence implements ObjectSequence<T> { @Override public Stream<T> stream() { return StreamSupport.stream(this::spliterator, spliteratorCharacteristics(), false); } }
SortedObjectSequence implements ObjectSequence<T> { @Override public Stream<T> stream() { return StreamSupport.stream(this::spliterator, spliteratorCharacteristics(), false); } SortedObjectSequence(@NonNull ObjectSequence<T> seq, @NonNull Comparator<? super T> comparator); }
SortedObjectSequence implements ObjectSequence<T> { @Override public Stream<T> stream() { return StreamSupport.stream(this::spliterator, spliteratorCharacteristics(), false); } SortedObjectSequence(@NonNull ObjectSequence<T> seq, @NonNull Comparator<? super T> comparator); @Override boolean isSorted(); @Override T get(int index); @Override Comparator<C> getComparator(); @Override Iterator<T> iterator(); @Override Spliterator<T> spliterator(); @Override Stream<T> stream(); @Override Stream<T> parallelStream(); @Override int size(); @Override boolean isEmpty(); @Override SortedObjectSequence<T> reverse(); }
SortedObjectSequence implements ObjectSequence<T> { @Override public Stream<T> stream() { return StreamSupport.stream(this::spliterator, spliteratorCharacteristics(), false); } SortedObjectSequence(@NonNull ObjectSequence<T> seq, @NonNull Comparator<? super T> comparator); @Override boolean isSorted(); @Override T get(int index); @Override Comparator<C> getComparator(); @Override Iterator<T> iterator(); @Override Spliterator<T> spliterator(); @Override Stream<T> stream(); @Override Stream<T> parallelStream(); @Override int size(); @Override boolean isEmpty(); @Override SortedObjectSequence<T> reverse();  }