@Test public void map() { assertThat(seq.map(str -> "(" + str + ")", true, true, true), Matchers.contains("(5)", "(6)")); }
@Override public <R> IntObjectSequence<R> map(Function<? super T, ? extends R> fn, boolean sorted, boolean nonnull, boolean distinct) { return new IntObjectSequence<>(underlying, (i) -> fn.apply(this.fn.apply(i)), sorted, nonnull, distinct); }
IntObjectSequence implements ObjectSequence<T> { @Override public <R> IntObjectSequence<R> map(Function<? super T, ? extends R> fn, boolean sorted, boolean nonnull, boolean distinct) { return new IntObjectSequence<>(underlying, (i) -> fn.apply(this.fn.apply(i)), sorted, nonnull, distinct); } }
IntObjectSequence implements ObjectSequence<T> { @Override public <R> IntObjectSequence<R> map(Function<? super T, ? extends R> fn, boolean sorted, boolean nonnull, boolean distinct) { return new IntObjectSequence<>(underlying, (i) -> fn.apply(this.fn.apply(i)), sorted, nonnull, distinct); }  }
IntObjectSequence implements ObjectSequence<T> { @Override public <R> IntObjectSequence<R> map(Function<? super T, ? extends R> fn, boolean sorted, boolean nonnull, boolean distinct) { return new IntObjectSequence<>(underlying, (i) -> fn.apply(this.fn.apply(i)), sorted, nonnull, distinct); }  @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 IntObjectSequence<T> limit(int n); @Override IntObjectSequence<T> skip(int n); @Override int size(); @Override boolean isEmpty(); @Override IntObjectSequence<T> reverse(); @Override IntObjectSequence<R> map(Function<? super T, ? extends R> fn, boolean sorted, boolean nonnull, boolean distinct); }
IntObjectSequence implements ObjectSequence<T> { @Override public <R> IntObjectSequence<R> map(Function<? super T, ? extends R> fn, boolean sorted, boolean nonnull, boolean distinct) { return new IntObjectSequence<>(underlying, (i) -> fn.apply(this.fn.apply(i)), sorted, nonnull, distinct); }  @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 IntObjectSequence<T> limit(int n); @Override IntObjectSequence<T> skip(int n); @Override int size(); @Override boolean isEmpty(); @Override IntObjectSequence<T> reverse(); @Override IntObjectSequence<R> map(Function<? super T, ? extends R> fn, boolean sorted, boolean nonnull, boolean distinct);  }