Created
October 3, 2015 05:43
-
-
Save Pyknic/71eef9a25acb184bc14c to your computer and use it in GitHub Desktop.
The output from the Java 8 Variants generation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Write some documentation here. | |
| */ | |
| package com.speedment.steam.action; | |
| import java.util.stream.Stream; | |
| import java.util.function.Function; | |
| import com.speedment.stream.StreamAction; | |
| import static java.util.Objects.requireNonNull; | |
| /** | |
| * Write some documentation here. | |
| * | |
| * @param <IN> | |
| * @param <OUT> | |
| * @author Your Name | |
| */ | |
| final class MapAction<IN, OUT> implements StreamAction<Stream<IN>, Stream<OUT>> { | |
| private final Function<IN, OUT> mapper; | |
| /** | |
| * Write some documentation here. | |
| * | |
| * @param mapper | |
| */ | |
| public MapAction(Function<IN, OUT> mapper) { | |
| this.mapper = requireNonNull(mapper); | |
| } | |
| /** | |
| * Write some documentation here. | |
| * | |
| * @param stream | |
| * @return | |
| */ | |
| @Override | |
| public Stream<OUT> apply(Stream<IN> stream) { | |
| return requireNonNull(stream).map(mapper); | |
| } | |
| } | |
| ------------------------------------------- | |
| /** | |
| * Write some documentation here. | |
| */ | |
| package com.speedment.steam.action; | |
| import java.util.stream.Stream; | |
| import java.util.stream.LongStream; | |
| import java.util.function.ToLongFunction; | |
| import com.speedment.stream.StreamAction; | |
| import static java.util.Objects.requireNonNull; | |
| /** | |
| * Write some documentation here. | |
| * | |
| * @param <IN> | |
| * @author Your Name | |
| */ | |
| final class ToLongMapAction<IN> implements StreamAction<Stream<IN>, LongStream> { | |
| private final ToLongFunction<IN> mapper; | |
| /** | |
| * Write some documentation here. | |
| * | |
| * @param mapper | |
| */ | |
| public ToLongMapAction(ToLongFunction<IN> mapper) { | |
| this.mapper = requireNonNull(mapper); | |
| } | |
| /** | |
| * Write some documentation here. | |
| * | |
| * @param stream | |
| * @return | |
| */ | |
| @Override | |
| public LongStream apply(Stream<IN> stream) { | |
| return requireNonNull(stream).map(mapper); | |
| } | |
| } | |
| ------------------------------------------- | |
| /** | |
| * Write some documentation here. | |
| */ | |
| package com.speedment.steam.action; | |
| import java.util.stream.Stream; | |
| import java.util.stream.DoubleStream; | |
| import java.util.function.ToDoubleFunction; | |
| import com.speedment.stream.StreamAction; | |
| import static java.util.Objects.requireNonNull; | |
| /** | |
| * Write some documentation here. | |
| * | |
| * @param <IN> | |
| * @author Your Name | |
| */ | |
| final class ToDoubleMapAction<IN> implements StreamAction<Stream<IN>, DoubleStream> { | |
| private final ToDoubleFunction<IN> mapper; | |
| /** | |
| * Write some documentation here. | |
| * | |
| * @param mapper | |
| */ | |
| public ToDoubleMapAction(ToDoubleFunction<IN> mapper) { | |
| this.mapper = requireNonNull(mapper); | |
| } | |
| /** | |
| * Write some documentation here. | |
| * | |
| * @param stream | |
| * @return | |
| */ | |
| @Override | |
| public DoubleStream apply(Stream<IN> stream) { | |
| return requireNonNull(stream).map(mapper); | |
| } | |
| } | |
| ------------------------------------------- | |
| /** | |
| * Write some documentation here. | |
| */ | |
| package com.speedment.steam.action; | |
| import java.util.stream.Stream; | |
| import java.util.stream.IntStream; | |
| import java.util.function.ToIntFunction; | |
| import com.speedment.stream.StreamAction; | |
| import static java.util.Objects.requireNonNull; | |
| /** | |
| * Write some documentation here. | |
| * | |
| * @param <IN> | |
| * @author Your Name | |
| */ | |
| final class ToIntMapAction<IN> implements StreamAction<Stream<IN>, IntStream> { | |
| private final ToIntFunction<IN> mapper; | |
| /** | |
| * Write some documentation here. | |
| * | |
| * @param mapper | |
| */ | |
| public ToIntMapAction(ToIntFunction<IN> mapper) { | |
| this.mapper = requireNonNull(mapper); | |
| } | |
| /** | |
| * Write some documentation here. | |
| * | |
| * @param stream | |
| * @return | |
| */ | |
| @Override | |
| public IntStream apply(Stream<IN> stream) { | |
| return requireNonNull(stream).map(mapper); | |
| } | |
| } | |
| ------------------------------------------- | |
| /** | |
| * Write some documentation here. | |
| */ | |
| package com.speedment.steam.action; | |
| import java.util.stream.Stream; | |
| import java.util.stream.LongStream; | |
| import java.util.function.ToLongFunction; | |
| import com.speedment.stream.StreamAction; | |
| import static java.util.Objects.requireNonNull; | |
| /** | |
| * Write some documentation here. | |
| * | |
| * @param <OUT> | |
| * @author Your Name | |
| */ | |
| final class LongMapAction<OUT> implements StreamAction<LongStream, Stream<OUT>> { | |
| private final LongFunction<OUT> mapper; | |
| /** | |
| * Write some documentation here. | |
| * | |
| * @param mapper | |
| */ | |
| public LongMapAction(LongFunction<OUT> mapper) { | |
| this.mapper = requireNonNull(mapper); | |
| } | |
| /** | |
| * Write some documentation here. | |
| * | |
| * @param stream | |
| * @return | |
| */ | |
| @Override | |
| public Stream<OUT> apply(LongStream stream) { | |
| return requireNonNull(stream).map(mapper); | |
| } | |
| } | |
| ------------------------------------------- | |
| /** | |
| * Write some documentation here. | |
| */ | |
| package com.speedment.steam.action; | |
| import java.util.stream.LongStream; | |
| import java.util.function.LongBinaryOperator; | |
| import com.speedment.stream.StreamAction; | |
| import static java.util.Objects.requireNonNull; | |
| /** | |
| * Write some documentation here. | |
| * | |
| * @author Your Name | |
| */ | |
| final class LongToLongMapAction implements StreamAction<LongStream, LongStream> { | |
| private final LongBinaryOperator mapper; | |
| /** | |
| * Write some documentation here. | |
| * | |
| * @param mapper | |
| */ | |
| public LongToLongMapAction(LongBinaryOperator mapper) { | |
| this.mapper = requireNonNull(mapper); | |
| } | |
| /** | |
| * Write some documentation here. | |
| * | |
| * @param stream | |
| * @return | |
| */ | |
| @Override | |
| public LongStream apply(LongStream stream) { | |
| return requireNonNull(stream).map(mapper); | |
| } | |
| } | |
| ------------------------------------------- | |
| /** | |
| * Write some documentation here. | |
| */ | |
| package com.speedment.steam.action; | |
| import java.util.stream.Stream; | |
| import java.util.stream.DoubleStream; | |
| import java.util.function.DoubleFunction; | |
| import com.speedment.stream.StreamAction; | |
| import static java.util.Objects.requireNonNull; | |
| /** | |
| * Write some documentation here. | |
| * | |
| * @param <OUT> | |
| * @author Your Name | |
| */ | |
| final class DoubleMapAction<OUT> implements StreamAction<DoubleStream, Stream<OUT>> { | |
| private final DoubleFunction<OUT> mapper; | |
| /** | |
| * Write some documentation here. | |
| * | |
| * @param mapper | |
| */ | |
| public DoubleMapAction(DoubleFunction<OUT> mapper) { | |
| this.mapper = requireNonNull(mapper); | |
| } | |
| /** | |
| * Write some documentation here. | |
| * | |
| * @param stream | |
| * @return | |
| */ | |
| @Override | |
| public Stream<OUT> apply(DoubleStream stream) { | |
| return requireNonNull(stream).map(mapper); | |
| } | |
| } | |
| ------------------------------------------- | |
| /** | |
| * Write some documentation here. | |
| */ | |
| package com.speedment.steam.action; | |
| import java.util.stream.DoubleStream; | |
| import java.util.function.DoubleBinaryOperator; | |
| import com.speedment.stream.StreamAction; | |
| import static java.util.Objects.requireNonNull; | |
| /** | |
| * Write some documentation here. | |
| * | |
| * @author Your Name | |
| */ | |
| final class DoubleToDoubleMapAction implements StreamAction<DoubleStream, DoubleStream> { | |
| private final DoubleBinaryOperator mapper; | |
| /** | |
| * Write some documentation here. | |
| * | |
| * @param mapper | |
| */ | |
| public DoubleToDoubleMapAction(DoubleBinaryOperator mapper) { | |
| this.mapper = requireNonNull(mapper); | |
| } | |
| /** | |
| * Write some documentation here. | |
| * | |
| * @param stream | |
| * @return | |
| */ | |
| @Override | |
| public DoubleStream apply(DoubleStream stream) { | |
| return requireNonNull(stream).map(mapper); | |
| } | |
| } | |
| ------------------------------------------- | |
| /** | |
| * Write some documentation here. | |
| */ | |
| package com.speedment.steam.action; | |
| import java.util.stream.Stream; | |
| import java.util.stream.IntStream; | |
| import java.util.function.IntFunction; | |
| import com.speedment.stream.StreamAction; | |
| import static java.util.Objects.requireNonNull; | |
| /** | |
| * Write some documentation here. | |
| * | |
| * @param <OUT> | |
| * @author Your Name | |
| */ | |
| final class IntMapAction<OUT> implements StreamAction<IntStream, Stream<OUT>> { | |
| private final IntFunction<OUT> mapper; | |
| /** | |
| * Write some documentation here. | |
| * | |
| * @param mapper | |
| */ | |
| public IntMapAction(IntFunction<OUT> mapper) { | |
| this.mapper = requireNonNull(mapper); | |
| } | |
| /** | |
| * Write some documentation here. | |
| * | |
| * @param stream | |
| * @return | |
| */ | |
| @Override | |
| public Stream<OUT> apply(IntStream stream) { | |
| return requireNonNull(stream).map(mapper); | |
| } | |
| } | |
| ------------------------------------------- | |
| /** | |
| * Write some documentation here. | |
| */ | |
| package com.speedment.steam.action; | |
| import java.util.stream.Stream; | |
| import java.util.stream.IntStream; | |
| import java.util.function.IntBinaryOperator; | |
| import com.speedment.stream.StreamAction; | |
| import static java.util.Objects.requireNonNull; | |
| /** | |
| * Write some documentation here. | |
| * | |
| * @author Your Name | |
| */ | |
| final class IntToIntMapAction implements StreamAction<IntStream, IntStream> { | |
| private final IntBinaryOperator mapper; | |
| /** | |
| * Write some documentation here. | |
| * | |
| * @param mapper | |
| */ | |
| public IntToIntMapAction(IntBinaryOperator mapper) { | |
| this.mapper = requireNonNull(mapper); | |
| } | |
| /** | |
| * Write some documentation here. | |
| * | |
| * @param stream | |
| * @return | |
| */ | |
| @Override | |
| public IntStream apply(IntStream stream) { | |
| return requireNonNull(stream).map(mapper); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment