@Test public void map() { assertThat(seq.map(x -> x + 1, true, true, true), contains(new Integer(6), new Integer(7))); }
@Override public <U> ObjectSequence<U> map(Function<? super R, ? extends U> fn, boolean sorted, boolean nonnull, boolean distinct) { return new MappingObjectSequence<>(underlying, (v) -> fn.apply(this.fn.apply(v)), sorted, nonnull, distinct); }
MappingObjectSequence implements ObjectSequence<R> { @Override public <U> ObjectSequence<U> map(Function<? super R, ? extends U> fn, boolean sorted, boolean nonnull, boolean distinct) { return new MappingObjectSequence<>(underlying, (v) -> fn.apply(this.fn.apply(v)), sorted, nonnull, distinct); } }
MappingObjectSequence implements ObjectSequence<R> { @Override public <U> ObjectSequence<U> map(Function<? super R, ? extends U> fn, boolean sorted, boolean nonnull, boolean distinct) { return new MappingObjectSequence<>(underlying, (v) -> fn.apply(this.fn.apply(v)), sorted, nonnull, distinct); }  }
MappingObjectSequence implements ObjectSequence<R> { @Override public <U> ObjectSequence<U> map(Function<? super R, ? extends U> fn, boolean sorted, boolean nonnull, boolean distinct) { return new MappingObjectSequence<>(underlying, (v) -> fn.apply(this.fn.apply(v)), sorted, nonnull, distinct); }  @Override boolean isSorted(); @Override boolean isNonnull(); @Override boolean isDistinct(); @Override R get(int index); @Override Comparator<C> getComparator(); @Override Iterator<R> iterator(); @Override Spliterator<R> spliterator(); @Override Stream<R> stream(); @Override Stream<R> parallelStream(); @Override MappingObjectSequence<T, R> limit(int n); @Override MappingObjectSequence<T, R> skip(int n); @Override int size(); @Override boolean isEmpty(); @Override ObjectSequence<R> reverse(); @Override ObjectSequence<U> map(Function<? super R, ? extends U> fn, boolean sorted, boolean nonnull, boolean distinct); }
MappingObjectSequence implements ObjectSequence<R> { @Override public <U> ObjectSequence<U> map(Function<? super R, ? extends U> fn, boolean sorted, boolean nonnull, boolean distinct) { return new MappingObjectSequence<>(underlying, (v) -> fn.apply(this.fn.apply(v)), sorted, nonnull, distinct); }  @Override boolean isSorted(); @Override boolean isNonnull(); @Override boolean isDistinct(); @Override R get(int index); @Override Comparator<C> getComparator(); @Override Iterator<R> iterator(); @Override Spliterator<R> spliterator(); @Override Stream<R> stream(); @Override Stream<R> parallelStream(); @Override MappingObjectSequence<T, R> limit(int n); @Override MappingObjectSequence<T, R> skip(int n); @Override int size(); @Override boolean isEmpty(); @Override ObjectSequence<R> reverse(); @Override ObjectSequence<U> map(Function<? super R, ? extends U> fn, boolean sorted, boolean nonnull, boolean distinct);  }