Home
last modified time | relevance | path

Searched refs:mapper (Results 1 – 11 of 11) sorted by relevance

/libcore/ojluni/src/main/java/java/util/stream/
DReferencePipeline.java194 public final <R> Stream<R> map(Function<? super P_OUT, ? extends R> mapper) {
195 Objects.requireNonNull(mapper);
203 downstream.accept(mapper.apply(u));
211 public final IntStream mapToInt(ToIntFunction<? super P_OUT> mapper) {
212 Objects.requireNonNull(mapper);
221 downstream.accept(mapper.applyAsInt(u));
229 public final LongStream mapToLong(ToLongFunction<? super P_OUT> mapper) {
230 Objects.requireNonNull(mapper);
239 downstream.accept(mapper.applyAsLong(u));
247 public final DoubleStream mapToDouble(ToDoubleFunction<? super P_OUT> mapper) {
[all …]
DDoublePipeline.java196 public final DoubleStream map(DoubleUnaryOperator mapper) { in map() argument
197 Objects.requireNonNull(mapper); in map()
206 downstream.accept(mapper.applyAsDouble(t)); in map()
214 public final <U> Stream<U> mapToObj(DoubleFunction<? extends U> mapper) {
215 Objects.requireNonNull(mapper);
224 downstream.accept(mapper.apply(t));
232 public final IntStream mapToInt(DoubleToIntFunction mapper) {
233 Objects.requireNonNull(mapper);
242 downstream.accept(mapper.applyAsInt(t));
250 public final LongStream mapToLong(DoubleToLongFunction mapper) {
[all …]
DIntPipeline.java233 public final IntStream map(IntUnaryOperator mapper) {
234 Objects.requireNonNull(mapper);
243 downstream.accept(mapper.applyAsInt(t));
251 public final <U> Stream<U> mapToObj(IntFunction<? extends U> mapper) {
252 Objects.requireNonNull(mapper);
261 downstream.accept(mapper.apply(t));
269 public final LongStream mapToLong(IntToLongFunction mapper) {
270 Objects.requireNonNull(mapper);
279 downstream.accept(mapper.applyAsLong(t));
287 public final DoubleStream mapToDouble(IntToDoubleFunction mapper) {
[all …]
DLongPipeline.java214 public final LongStream map(LongUnaryOperator mapper) {
215 Objects.requireNonNull(mapper);
224 downstream.accept(mapper.applyAsLong(t));
232 public final <U> Stream<U> mapToObj(LongFunction<? extends U> mapper) {
233 Objects.requireNonNull(mapper);
242 downstream.accept(mapper.apply(t));
250 public final IntStream mapToInt(LongToIntFunction mapper) {
251 Objects.requireNonNull(mapper);
260 downstream.accept(mapper.applyAsInt(t));
268 public final DoubleStream mapToDouble(LongToDoubleFunction mapper) {
[all …]
DStream.java184 <R> Stream<R> map(Function<? super T, ? extends R> mapper); in map() argument
198 IntStream mapToInt(ToIntFunction<? super T> mapper); in mapToInt() argument
212 LongStream mapToLong(ToLongFunction<? super T> mapper); in mapToLong() argument
226 DoubleStream mapToDouble(ToDoubleFunction<? super T> mapper); in mapToDouble() argument
270 <R> Stream<R> flatMap(Function<? super T, ? extends Stream<? extends R>> mapper); in flatMap() argument
290 IntStream flatMapToInt(Function<? super T, ? extends IntStream> mapper); in flatMapToInt() argument
310 LongStream flatMapToLong(Function<? super T, ? extends LongStream> mapper); in flatMapToLong() argument
330 DoubleStream flatMapToDouble(Function<? super T, ? extends DoubleStream> mapper); in flatMapToDouble() argument
DCollectors.java351 Collector<T, ?, R> mapping(Function<? super T, ? extends U> mapper,
355 (r, t) -> downstreamAccumulator.accept(r, mapper.apply(t)),
464 summingInt(ToIntFunction<? super T> mapper) {
467 (a, t) -> { a[0] += mapper.applyAsInt(t); },
482 summingLong(ToLongFunction<? super T> mapper) {
485 (a, t) -> { a[0] += mapper.applyAsLong(t); },
507 summingDouble(ToDoubleFunction<? super T> mapper) {
518 (a, t) -> { sumWithCompensation(a, mapper.applyAsDouble(t));
519 a[2] += mapper.applyAsDouble(t);},
572 averagingInt(ToIntFunction<? super T> mapper) {
[all …]
DDoubleStream.java106 DoubleStream map(DoubleUnaryOperator mapper); in map() argument
121 <U> Stream<U> mapToObj(DoubleFunction<? extends U> mapper); in mapToObj() argument
135 IntStream mapToInt(DoubleToIntFunction mapper); in mapToInt() argument
149 LongStream mapToLong(DoubleToLongFunction mapper); in mapToLong() argument
169 DoubleStream flatMap(DoubleFunction<? extends DoubleStream> mapper); in flatMap() argument
DIntStream.java102 IntStream map(IntUnaryOperator mapper); in map() argument
117 <U> Stream<U> mapToObj(IntFunction<? extends U> mapper); in mapToObj() argument
131 LongStream mapToLong(IntToLongFunction mapper); in mapToLong() argument
145 DoubleStream mapToDouble(IntToDoubleFunction mapper); in mapToDouble() argument
165 IntStream flatMap(IntFunction<? extends IntStream> mapper); in flatMap() argument
DLongStream.java107 LongStream map(LongUnaryOperator mapper); in map() argument
122 <U> Stream<U> mapToObj(LongFunction<? extends U> mapper); in mapToObj() argument
136 IntStream mapToInt(LongToIntFunction mapper); in mapToInt() argument
150 DoubleStream mapToDouble(LongToDoubleFunction mapper); in mapToDouble() argument
170 LongStream flatMap(LongFunction<? extends LongStream> mapper); in flatMap() argument
/libcore/ojluni/src/main/java/java/util/
DOptional.java206 public<U> Optional<U> map(Function<? super T, ? extends U> mapper) { in map() argument
207 Objects.requireNonNull(mapper); in map()
211 return Optional.ofNullable(mapper.apply(value)); in map()
232 public<U> Optional<U> flatMap(Function<? super T, Optional<U>> mapper) { in flatMap() argument
233 Objects.requireNonNull(mapper); in flatMap()
237 return Objects.requireNonNull(mapper.apply(value)); in flatMap()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DTabulatorsTest.java210 private final Function<T, U> mapper; field in TabulatorsTest.ReduceAssertion
213 ReduceAssertion(U identity, Function<T, U> mapper, BinaryOperator<U> reducer) { in ReduceAssertion() argument
215 this.mapper = mapper; in ReduceAssertion()
222 Optional<U> reduced = source.get().map(mapper).reduce(reducer); in assertValue()