Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
functionalj.stream.StreamableWithMapToMap Maven / Gradle / Ivy
package functionalj.stream;
import java.util.function.Function;
import java.util.stream.Stream;
import functionalj.map.FuncMap;
public interface StreamableWithMapToMap {
public Streamable deriveWith(
Function, Stream> action);
//== mapToMap ==
public default Streamable> mapToMap(
KEY key, Function super DATA, ? extends VALUE> mapper) {
return deriveWith(stream -> {
return StreamPlus
.from (stream)
.mapToMap(key, mapper);
});
}
public default Streamable> mapToMap(
KEY key1, Function super DATA, ? extends VALUE> mapper1,
KEY key2, Function super DATA, ? extends VALUE> mapper2) {
return deriveWith(stream -> {
return StreamPlus
.from (stream)
.mapToMap(key1, mapper1,
key2, mapper2);
});
}
public default Streamable> mapToMap(
KEY key1, Function super DATA, ? extends VALUE> mapper1,
KEY key2, Function super DATA, ? extends VALUE> mapper2,
KEY key3, Function super DATA, ? extends VALUE> mapper3) {
return deriveWith(stream -> {
return StreamPlus
.from (stream)
.mapToMap(key1, mapper1,
key2, mapper2,
key3, mapper3);
});
}
public default Streamable> mapToMap(
KEY key1, Function super DATA, ? extends VALUE> mapper1,
KEY key2, Function super DATA, ? extends VALUE> mapper2,
KEY key3, Function super DATA, ? extends VALUE> mapper3,
KEY key4, Function super DATA, ? extends VALUE> mapper4) {
return deriveWith(stream -> {
return StreamPlus
.from (stream)
.mapToMap(key1, mapper1,
key2, mapper2,
key3, mapper3,
key4, mapper4);
});
}
public default Streamable> mapToMap(
KEY key1, Function super DATA, ? extends VALUE> mapper1,
KEY key2, Function super DATA, ? extends VALUE> mapper2,
KEY key3, Function super DATA, ? extends VALUE> mapper3,
KEY key4, Function super DATA, ? extends VALUE> mapper4,
KEY key5, Function super DATA, ? extends VALUE> mapper5) {
return deriveWith(stream -> {
return StreamPlus
.from (stream)
.mapToMap(key1, mapper1,
key2, mapper2,
key3, mapper3,
key4, mapper4,
key5, mapper5);
});
}
public default Streamable> mapToMap(
KEY key1, Function super DATA, ? extends VALUE> mapper1,
KEY key2, Function super DATA, ? extends VALUE> mapper2,
KEY key3, Function super DATA, ? extends VALUE> mapper3,
KEY key4, Function super DATA, ? extends VALUE> mapper4,
KEY key5, Function super DATA, ? extends VALUE> mapper5,
KEY key6, Function super DATA, ? extends VALUE> mapper6) {
return deriveWith(stream -> {
return StreamPlus
.from (stream)
.mapToMap(key1, mapper1,
key2, mapper2,
key3, mapper3,
key4, mapper4,
key5, mapper5,
key6, mapper6);
});
}
public default Streamable> mapToMap(
KEY key1, Function super DATA, ? extends VALUE> mapper1,
KEY key2, Function super DATA, ? extends VALUE> mapper2,
KEY key3, Function super DATA, ? extends VALUE> mapper3,
KEY key4, Function super DATA, ? extends VALUE> mapper4,
KEY key5, Function super DATA, ? extends VALUE> mapper5,
KEY key6, Function super DATA, ? extends VALUE> mapper6,
KEY key7, Function super DATA, ? extends VALUE> mapper7) {
return deriveWith(stream -> {
return StreamPlus
.from (stream)
.mapToMap(key1, mapper1,
key2, mapper2,
key3, mapper3,
key4, mapper4,
key5, mapper5,
key6, mapper6,
key7, mapper7);
});
}
public default Streamable> mapToMap(
KEY key1, Function super DATA, ? extends VALUE> mapper1,
KEY key2, Function super DATA, ? extends VALUE> mapper2,
KEY key3, Function super DATA, ? extends VALUE> mapper3,
KEY key4, Function super DATA, ? extends VALUE> mapper4,
KEY key5, Function super DATA, ? extends VALUE> mapper5,
KEY key6, Function super DATA, ? extends VALUE> mapper6,
KEY key7, Function super DATA, ? extends VALUE> mapper7,
KEY key8, Function super DATA, ? extends VALUE> mapper8) {
return deriveWith(stream -> {
return StreamPlus
.from (stream)
.mapToMap(key1, mapper1,
key2, mapper2,
key3, mapper3,
key4, mapper4,
key5, mapper5,
key6, mapper6,
key7, mapper7,
key8, mapper8);
});
}
public default Streamable> mapToMap(
KEY key1, Function super DATA, ? extends VALUE> mapper1,
KEY key2, Function super DATA, ? extends VALUE> mapper2,
KEY key3, Function super DATA, ? extends VALUE> mapper3,
KEY key4, Function super DATA, ? extends VALUE> mapper4,
KEY key5, Function super DATA, ? extends VALUE> mapper5,
KEY key6, Function super DATA, ? extends VALUE> mapper6,
KEY key7, Function super DATA, ? extends VALUE> mapper7,
KEY key8, Function super DATA, ? extends VALUE> mapper8,
KEY key9, Function super DATA, ? extends VALUE> mapper9) {
return deriveWith(stream -> {
return StreamPlus
.from (stream)
.mapToMap(key1, mapper1,
key2, mapper2,
key3, mapper3,
key4, mapper4,
key5, mapper5,
key6, mapper6,
key7, mapper7,
key8, mapper8,
key9, mapper9);
});
}
public default Streamable> mapToMap(
KEY key1, Function super DATA, ? extends VALUE> mapper1,
KEY key2, Function super DATA, ? extends VALUE> mapper2,
KEY key3, Function super DATA, ? extends VALUE> mapper3,
KEY key4, Function super DATA, ? extends VALUE> mapper4,
KEY key5, Function super DATA, ? extends VALUE> mapper5,
KEY key6, Function super DATA, ? extends VALUE> mapper6,
KEY key7, Function super DATA, ? extends VALUE> mapper7,
KEY key8, Function super DATA, ? extends VALUE> mapper8,
KEY key9, Function super DATA, ? extends VALUE> mapper9,
KEY key10, Function super DATA, ? extends VALUE> mapper10) {
return deriveWith(stream -> {
return StreamPlus
.from (stream)
.mapToMap(key1, mapper1,
key2, mapper2,
key3, mapper3,
key4, mapper4,
key5, mapper5,
key6, mapper6,
key7, mapper7,
key8, mapper8,
key9, mapper9,
key10, mapper10);
});
}
}