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.pipeable.Pipeable Maven / Gradle / Ivy
// ============================================================================
// Copyright (c) 2017-2019 Nawapunth Manusitthipol (NawaMan - http://nawaman.net).
// ----------------------------------------------------------------------------
// MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
// ============================================================================
package functionalj.pipeable;
import static functionalj.result.Result.Try;
import java.util.Optional;
import java.util.function.Consumer;
import java.util.function.Predicate;
import java.util.function.Supplier;
import functionalj.function.Func;
import functionalj.function.Func1;
import functionalj.functions.ThrowFuncs;
import functionalj.result.Result;
import lombok.val;
import nullablej.nullable.Nullable;
// TODO - Think about adding Finally.
//== Internal use ==
class __internal {
public static O apply(Func1 func, I input) throws Exception {
if (func == null)
return null;
if (input == null) {
if (!(func instanceof NullSafeOperator))
return null;
}
return Func.applyUnsafe(func, input);
}
}
@SuppressWarnings("javadoc")
public interface Pipeable {
public static Pipeable of(D data) {
return ()->data;
}
public static Pipeable from(Supplier supplier) {
return supplier::get;
}
public static Pipeable StartWtih(D data) {
return ()->data;
}
public static Pipeable StartBy(Supplier supplier) {
return supplier::get;
}
public DATA __data() throws Exception;
@SuppressWarnings("unchecked")
public default Nullable __nullable() {
if (this instanceof Result)
return ((Result)this).toNullable();
try {
return Nullable.of(this.__data());
} catch (Exception e) {
return Nullable.empty();
}
}
@SuppressWarnings("unchecked")
public default Optional __optional() {
if (this instanceof Result)
return ((Result)this).toOptional();
try {
return Optional.ofNullable(this.__data());
} catch (Exception e) {
return Optional.empty();
}
}
@SuppressWarnings("unchecked")
public default Result __result() {
if (this instanceof Result)
return ((Result)this);
return Try(this::__data);
}
@SuppressWarnings("unchecked")
public default Result __map(Func1 super DATA, OUTPUT> func) {
return ((this instanceof Result)
? ((Result)this)
: Try(this::__data))
.map(func);
}
@SuppressWarnings("unchecked")
public default Result __filter(Predicate super DATA> theCondition) {
return ((this instanceof Result)
? ((Result)this)
: Try(this::__data))
.filter(theCondition);
}
@SuppressWarnings("unchecked")
public default Result __peek(Consumer super DATA> theConsumer) {
return ((this instanceof Result)
? ((Result)this)
: Try(this::__data))
.peek(theConsumer);
}
@SuppressWarnings("unchecked")
public default DATA __orElse(DATA data) {
return ((this instanceof Result)
? ((Result)this)
: Try(this::__data))
.orElse(data);
}
@SuppressWarnings("unchecked")
public default DATA __orGet(Supplier dataSupplier) {
return ((this instanceof Result)
? ((Result)this)
: Try(this::__data))
.orGet(dataSupplier);
}
@SuppressWarnings("unchecked")
public default DATA __orApply(Func1 dataMapper) {
return ((this instanceof Result)
? ((Result)this)
: Try(this::__data))
.orApply(dataMapper);
}
public default
OUTPUT pipe(Func1 super DATA, OUTPUT> func1) {
try {
val input = __data();
val output = __internal.apply(func1, input);
return output;
} catch (RuntimeException exception) {
throw exception;
} catch (Exception exception) {
throw ThrowFuncs.exceptionTransformer.value().apply(exception);
}
}
public default
FINALOUTPUT pipe(
Func1 super DATA, OUTPUT> func1,
Catch catchHandler)
throws EXCEPTION {
try {
val input = __data();
val output = __internal.apply(func1, input);
return catchHandler.doCatch(output, null);
} catch (Exception e) {
return catchHandler.doCatch(null, e);
}
}
public default
OUTPUT pipe(
Func1 super DATA, DATA1> func1,
Func1 super DATA1, OUTPUT> func2) {
try {
val input = __data();
val data1 = __internal.apply(func1, input);
val output = __internal.apply(func2, data1);
return output;
} catch (RuntimeException exception) {
throw exception;
} catch (Exception exception) {
throw ThrowFuncs.exceptionTransformer.value().apply(exception);
}
}
public default
FINALOUTPUT pipe(
Func1 super DATA, DATA1> func1,
Func1 super DATA1, OUTPUT> func2,
Catch catchHandler)
throws EXCEPTION {
try {
val input = __data();
val data1 = __internal.apply(func1, input);
val output = __internal.apply(func2, data1);
return catchHandler.doCatch(output, null);
} catch (Exception e) {
return catchHandler.doCatch(null, e);
}
}
public default
OUTPUT pipe(
Func1 super DATA, DATA1> func1,
Func1 super DATA1, DATA2> func2,
Func1 super DATA2, OUTPUT> func3) {
try {
val input = __data();
val data1 = __internal.apply(func1, input);
val data2 = __internal.apply(func2, data1);
val output = __internal.apply(func3, data2);
return output;
} catch (RuntimeException exception) {
throw exception;
} catch (Exception exception) {
throw ThrowFuncs.exceptionTransformer.value().apply(exception);
}
}
public default
FINALOUTPUT pipe(
Func1 super DATA, DATA1> func1,
Func1 super DATA1, DATA2> func2,
Func1 super DATA2, OUTPUT> func3,
Catch catchHandler)
throws EXCEPTION {
try {
val input = __data();
val data1 = __internal.apply(func1, input);
val data2 = __internal.apply(func2, data1);
val output = __internal.apply(func3, data2);
return catchHandler.doCatch(output, null);
} catch (Exception e) {
return catchHandler.doCatch(null, e);
}
}
public default
OUTPUT pipe(
Func1 super DATA, DATA1> func1,
Func1 super DATA1, DATA2> func2,
Func1 super DATA2, DATA3> func3,
Func1 super DATA3, OUTPUT> func4) {
try {
val input = __data();
val data1 = __internal.apply(func1, input);
val data2 = __internal.apply(func2, data1);
val data3 = __internal.apply(func3, data2);
val output = __internal.apply(func4, data3);
return output;
} catch (RuntimeException exception) {
throw exception;
} catch (Exception exception) {
throw ThrowFuncs.exceptionTransformer.value().apply(exception);
}
}
public default
FINALOUTPUT pipe(
Func1 super DATA, DATA1> func1,
Func1 super DATA1, DATA2> func2,
Func1 super DATA2, DATA3> func3,
Func1 super DATA3, OUTPUT> func4,
Catch catchHandler)
throws EXCEPTION {
try {
val input = __data();
val data1 = __internal.apply(func1, input);
val data2 = __internal.apply(func2, data1);
val data3 = __internal.apply(func3, data2);
val output = __internal.apply(func4, data3);
return catchHandler.doCatch(output, null);
} catch (Exception e) {
return catchHandler.doCatch(null, e);
}
}
public default
OUTPUT pipe(
Func1 super DATA, DATA1> func1,
Func1 super DATA1, DATA2> func2,
Func1 super DATA2, DATA3> func3,
Func1 super DATA3, DATA4> func4,
Func1 super DATA4, OUTPUT> func5) {
try {
val input = __data();
val data1 = __internal.apply(func1, input);
val data2 = __internal.apply(func2, data1);
val data3 = __internal.apply(func3, data2);
val data4 = __internal.apply(func4, data3);
val output = __internal.apply(func5, data4);
return output;
} catch (RuntimeException exception) {
throw exception;
} catch (Exception exception) {
throw ThrowFuncs.exceptionTransformer.value().apply(exception);
}
}
public default
FINALOUTPUT pipe(
Func1 super DATA, DATA1> func1,
Func1 super DATA1, DATA2> func2,
Func1 super DATA2, DATA3> func3,
Func1 super DATA3, DATA4> func4,
Func1 super DATA4, OUTPUT> func5,
Catch catchHandler)
throws EXCEPTION {
try {
val input = __data();
val data1 = __internal.apply(func1, input);
val data2 = __internal.apply(func2, data1);
val data3 = __internal.apply(func3, data2);
val data4 = __internal.apply(func4, data3);
val output = __internal.apply(func5, data4);
return catchHandler.doCatch(output, null);
} catch (Exception e) {
return catchHandler.doCatch(null, e);
}
}
public default
OUTPUT pipe(
Func1 super DATA, DATA1> func1,
Func1 super DATA1, DATA2> func2,
Func1 super DATA2, DATA3> func3,
Func1 super DATA3, DATA4> func4,
Func1 super DATA4, DATA5> func5,
Func1 super DATA5, OUTPUT> func6) {
try {
val input = __data();
val data1 = __internal.apply(func1, input);
val data2 = __internal.apply(func2, data1);
val data3 = __internal.apply(func3, data2);
val data4 = __internal.apply(func4, data3);
val data5 = __internal.apply(func5, data4);
val output = __internal.apply(func6, data5);
return output;
} catch (RuntimeException exception) {
throw exception;
} catch (Exception exception) {
throw ThrowFuncs.exceptionTransformer.value().apply(exception);
}
}
public default
FINALOUTPUT pipe(
Func1 super DATA, DATA1> func1,
Func1 super DATA1, DATA2> func2,
Func1 super DATA2, DATA3> func3,
Func1 super DATA3, DATA4> func4,
Func1 super DATA4, DATA5> func5,
Func1 super DATA5, OUTPUT> func6,
Catch catchHandler)
throws EXCEPTION {
try {
val input = __data();
val data1 = __internal.apply(func1, input);
val data2 = __internal.apply(func2, data1);
val data3 = __internal.apply(func3, data2);
val data4 = __internal.apply(func4, data3);
val data5 = __internal.apply(func5, data4);
val output = __internal.apply(func6, data5);
return catchHandler.doCatch(output, null);
} catch (Exception e) {
return catchHandler.doCatch(null, e);
}
}
public default
OUTPUT pipe(
Func1 super DATA, DATA1> func1,
Func1 super DATA1, DATA2> func2,
Func1 super DATA2, DATA3> func3,
Func1 super DATA3, DATA4> func4,
Func1 super DATA4, DATA5> func5,
Func1 super DATA5, DATA6> func6,
Func1 super DATA6, OUTPUT> func7) {
try {
val input = __data();
val data1 = __internal.apply(func1, input);
val data2 = __internal.apply(func2, data1);
val data3 = __internal.apply(func3, data2);
val data4 = __internal.apply(func4, data3);
val data5 = __internal.apply(func5, data4);
val data6 = __internal.apply(func6, data5);
val output = __internal.apply(func7, data6);
return output;
} catch (RuntimeException exception) {
throw exception;
} catch (Exception exception) {
throw ThrowFuncs.exceptionTransformer.value().apply(exception);
}
}
public default
FINALOUTPUT pipe(
Func1 super DATA, DATA1> func1,
Func1 super DATA1, DATA2> func2,
Func1 super DATA2, DATA3> func3,
Func1 super DATA3, DATA4> func4,
Func1 super DATA4, DATA5> func5,
Func1 super DATA5, DATA6> func6,
Func1 super DATA6, OUTPUT> func7,
Catch catchHandler)
throws EXCEPTION {
try {
val input = __data();
val data1 = __internal.apply(func1, input);
val data2 = __internal.apply(func2, data1);
val data3 = __internal.apply(func3, data2);
val data4 = __internal.apply(func4, data3);
val data5 = __internal.apply(func5, data4);
val data6 = __internal.apply(func6, data5);
val output = __internal.apply(func7, data6);
return catchHandler.doCatch(output, null);
} catch (Exception e) {
return catchHandler.doCatch(null, e);
}
}
public default
OUTPUT pipe(
Func1 super DATA, DATA1> func1,
Func1 super DATA1, DATA2> func2,
Func1 super DATA2, DATA3> func3,
Func1 super DATA3, DATA4> func4,
Func1 super DATA4, DATA5> func5,
Func1 super DATA5, DATA6> func6,
Func1 super DATA6, DATA7> func7,
Func1 super DATA7, OUTPUT> func8) {
try {
val input = __data();
val data1 = __internal.apply(func1, input);
val data2 = __internal.apply(func2, data1);
val data3 = __internal.apply(func3, data2);
val data4 = __internal.apply(func4, data3);
val data5 = __internal.apply(func5, data4);
val data6 = __internal.apply(func6, data5);
val data7 = __internal.apply(func7, data6);
val output = __internal.apply(func8, data7);
return output;
} catch (RuntimeException exception) {
throw exception;
} catch (Exception exception) {
throw ThrowFuncs.exceptionTransformer.value().apply(exception);
}
}
public default
FINALOUTPUT pipe(
Func1 super DATA, DATA1> func1,
Func1 super DATA1, DATA2> func2,
Func1 super DATA2, DATA3> func3,
Func1 super DATA3, DATA4> func4,
Func1 super DATA4, DATA5> func5,
Func1 super DATA5, DATA6> func6,
Func1 super DATA6, DATA7> func7,
Func1 super DATA7, OUTPUT> func8,
Catch catchHandler)
throws EXCEPTION {
try {
val input = __data();
val data1 = __internal.apply(func1, input);
val data2 = __internal.apply(func2, data1);
val data3 = __internal.apply(func3, data2);
val data4 = __internal.apply(func4, data3);
val data5 = __internal.apply(func5, data4);
val data6 = __internal.apply(func6, data5);
val data7 = __internal.apply(func7, data6);
val output = __internal.apply(func8, data7);
return catchHandler.doCatch(output, null);
} catch (Exception e) {
return catchHandler.doCatch(null, e);
}
}
public default
OUTPUT pipe(
Func1 super DATA, DATA1> func1,
Func1 super DATA1, DATA2> func2,
Func1 super DATA2, DATA3> func3,
Func1 super DATA3, DATA4> func4,
Func1 super DATA4, DATA5> func5,
Func1 super DATA5, DATA6> func6,
Func1 super DATA6, DATA7> func7,
Func1 super DATA7, DATA8> func8,
Func1 super DATA8, OUTPUT> func9) {
try {
val input = __data();
val data1 = __internal.apply(func1, input);
val data2 = __internal.apply(func2, data1);
val data3 = __internal.apply(func3, data2);
val data4 = __internal.apply(func4, data3);
val data5 = __internal.apply(func5, data4);
val data6 = __internal.apply(func6, data5);
val data7 = __internal.apply(func7, data6);
val data8 = __internal.apply(func8, data7);
val output = __internal.apply(func9, data8);
return output;
} catch (RuntimeException exception) {
throw exception;
} catch (Exception exception) {
throw ThrowFuncs.exceptionTransformer.value().apply(exception);
}
}
public default
FINALOUTPUT pipe(
Func1 super DATA, DATA1> func1,
Func1 super DATA1, DATA2> func2,
Func1 super DATA2, DATA3> func3,
Func1 super DATA3, DATA4> func4,
Func1 super DATA4, DATA5> func5,
Func1 super DATA5, DATA6> func6,
Func1 super DATA6, DATA7> func7,
Func1 super DATA7, DATA8> func8,
Func1 super DATA8, OUTPUT> func9,
Catch catchHandler)
throws EXCEPTION {
try {
val input = __data();
val data1 = __internal.apply(func1, input);
val data2 = __internal.apply(func2, data1);
val data3 = __internal.apply(func3, data2);
val data4 = __internal.apply(func4, data3);
val data5 = __internal.apply(func5, data4);
val data6 = __internal.apply(func6, data5);
val data7 = __internal.apply(func7, data6);
val data8 = __internal.apply(func8, data7);
val output = __internal.apply(func9, data8);
return catchHandler.doCatch(output, null);
} catch (Exception e) {
return catchHandler.doCatch(null, e);
}
}
public default
OUTPUT pipe(
Func1 super DATA, DATA1> func1,
Func1 super DATA1, DATA2> func2,
Func1 super DATA2, DATA3> func3,
Func1 super DATA3, DATA4> func4,
Func1 super DATA4, DATA5> func5,
Func1 super DATA5, DATA6> func6,
Func1 super DATA6, DATA7> func7,
Func1 super DATA7, DATA8> func8,
Func1 super DATA8, DATA9> func9,
Func1 super DATA9, OUTPUT> func10) {
try {
val input = __data();
val data1 = __internal.apply(func1, input);
val data2 = __internal.apply(func2, data1);
val data3 = __internal.apply(func3, data2);
val data4 = __internal.apply(func4, data3);
val data5 = __internal.apply(func5, data4);
val data6 = __internal.apply(func6, data5);
val data7 = __internal.apply(func7, data6);
val data8 = __internal.apply(func8, data7);
val data9 = __internal.apply(func9, data8);
val output = __internal.apply(func10, data9);
return output;
} catch (RuntimeException exception) {
throw exception;
} catch (Exception exception) {
throw ThrowFuncs.exceptionTransformer.value().apply(exception);
}
}
public default
FINALOUTPUT pipe(
Func1 super DATA, DATA1> func1,
Func1 super DATA1, DATA2> func2,
Func1 super DATA2, DATA3> func3,
Func1 super DATA3, DATA4> func4,
Func1 super DATA4, DATA5> func5,
Func1 super DATA5, DATA6> func6,
Func1 super DATA6, DATA7> func7,
Func1 super DATA7, DATA8> func8,
Func1 super DATA8, DATA9> func9,
Func1 super DATA9, OUTPUT> func10,
Catch catchHandler)
throws EXCEPTION {
try {
val input = __data();
val data1 = __internal.apply(func1, input);
val data2 = __internal.apply(func2, data1);
val data3 = __internal.apply(func3, data2);
val data4 = __internal.apply(func4, data3);
val data5 = __internal.apply(func5, data4);
val data6 = __internal.apply(func6, data5);
val data7 = __internal.apply(func7, data6);
val data8 = __internal.apply(func8, data7);
val data9 = __internal.apply(func9, data8);
val output = __internal.apply(func10, data9);
return catchHandler.doCatch(output, null);
} catch (Exception e) {
return catchHandler.doCatch(null, e);
}
}
public default
OUTPUT pipe(
Func1 super DATA, DATA1> func1,
Func1 super DATA1, DATA2> func2,
Func1 super DATA2, DATA3> func3,
Func1 super DATA3, DATA4> func4,
Func1 super DATA4, DATA5> func5,
Func1 super DATA5, DATA6> func6,
Func1 super DATA6, DATA7> func7,
Func1 super DATA7, DATA8> func8,
Func1 super DATA8, DATA9> func9,
Func1 super DATA9, DATA10> func10,
Func1 super DATA10, OUTPUT> func11) {
try {
val input = __data();
val data1 = __internal.apply(func1, input);
val data2 = __internal.apply(func2, data1);
val data3 = __internal.apply(func3, data2);
val data4 = __internal.apply(func4, data3);
val data5 = __internal.apply(func5, data4);
val data6 = __internal.apply(func6, data5);
val data7 = __internal.apply(func7, data6);
val data8 = __internal.apply(func8, data7);
val data9 = __internal.apply(func9, data8);
val data10 = __internal.apply(func10, data9);
val output = __internal.apply(func11, data10);
return output;
} catch (RuntimeException exception) {
throw exception;
} catch (Exception exception) {
throw ThrowFuncs.exceptionTransformer.value().apply(exception);
}
}
public default
FINALOUTPUT pipe(
Func1 super DATA, DATA1> func1,
Func1 super DATA1, DATA2> func2,
Func1 super DATA2, DATA3> func3,
Func1 super DATA3, DATA4> func4,
Func1 super DATA4, DATA5> func5,
Func1 super DATA5, DATA6> func6,
Func1 super DATA6, DATA7> func7,
Func1 super DATA7, DATA8> func8,
Func1 super DATA8, DATA9> func9,
Func1 super DATA9, DATA10> func10,
Func1 super DATA10, OUTPUT> func11,
Catch catchHandler)
throws EXCEPTION {
try {
val input = __data();
val data1 = __internal.apply(func1, input);
val data2 = __internal.apply(func2, data1);
val data3 = __internal.apply(func3, data2);
val data4 = __internal.apply(func4, data3);
val data5 = __internal.apply(func5, data4);
val data6 = __internal.apply(func6, data5);
val data7 = __internal.apply(func7, data6);
val data8 = __internal.apply(func8, data7);
val data9 = __internal.apply(func9, data8);
val data10 = __internal.apply(func10, data9);
val output = __internal.apply(func11, data10);
return catchHandler.doCatch(output, null);
} catch (Exception e) {
return catchHandler.doCatch(null, e);
}
}
public default
OUTPUT pipe(
Func1 super DATA, DATA1> func1,
Func1 super DATA1, DATA2> func2,
Func1 super DATA2, DATA3> func3,
Func1 super DATA3, DATA4> func4,
Func1 super DATA4, DATA5> func5,
Func1 super DATA5, DATA6> func6,
Func1 super DATA6, DATA7> func7,
Func1 super DATA7, DATA8> func8,
Func1 super DATA8, DATA9> func9,
Func1 super DATA9, DATA10> func10,
Func1 super DATA10, DATA11> func11,
Func1 super DATA11, OUTPUT> func12) {
try {
val input = __data();
val data1 = __internal.apply(func1, input);
val data2 = __internal.apply(func2, data1);
val data3 = __internal.apply(func3, data2);
val data4 = __internal.apply(func4, data3);
val data5 = __internal.apply(func5, data4);
val data6 = __internal.apply(func6, data5);
val data7 = __internal.apply(func7, data6);
val data8 = __internal.apply(func8, data7);
val data9 = __internal.apply(func9, data8);
val data10 = __internal.apply(func10, data9);
val data11 = __internal.apply(func11, data10);
val output = __internal.apply(func12, data11);
return output;
} catch (RuntimeException exception) {
throw exception;
} catch (Exception exception) {
throw ThrowFuncs.exceptionTransformer.value().apply(exception);
}
}
public default
FINALOUTPUT pipe(
Func1 super DATA, DATA1> func1,
Func1 super DATA1, DATA2> func2,
Func1 super DATA2, DATA3> func3,
Func1 super DATA3, DATA4> func4,
Func1 super DATA4, DATA5> func5,
Func1 super DATA5, DATA6> func6,
Func1 super DATA6, DATA7> func7,
Func1 super DATA7, DATA8> func8,
Func1 super DATA8, DATA9> func9,
Func1 super DATA9, DATA10> func10,
Func1 super DATA10, DATA11> func11,
Func1 super DATA11, OUTPUT> func12,
Catch catchHandler)
throws EXCEPTION {
try {
val input = __data();
val data1 = __internal.apply(func1, input);
val data2 = __internal.apply(func2, data1);
val data3 = __internal.apply(func3, data2);
val data4 = __internal.apply(func4, data3);
val data5 = __internal.apply(func5, data4);
val data6 = __internal.apply(func6, data5);
val data7 = __internal.apply(func7, data6);
val data8 = __internal.apply(func8, data7);
val data9 = __internal.apply(func9, data8);
val data10 = __internal.apply(func10, data9);
val data11 = __internal.apply(func11, data10);
val output = __internal.apply(func12, data11);
return catchHandler.doCatch(output, null);
} catch (Exception e) {
return catchHandler.doCatch(null, e);
}
}
public default
OUTPUT pipe(
Func1 super DATA, DATA1> func1,
Func1 super DATA1, DATA2> func2,
Func1 super DATA2, DATA3> func3,
Func1 super DATA3, DATA4> func4,
Func1 super DATA4, DATA5> func5,
Func1 super DATA5, DATA6> func6,
Func1 super DATA6, DATA7> func7,
Func1 super DATA7, DATA8> func8,
Func1 super DATA8, DATA9> func9,
Func1 super DATA9, DATA10> func10,
Func1 super DATA10, DATA11> func11,
Func1 super DATA11, DATA12> func12,
Func1 super DATA12, OUTPUT> func13) {
try {
val input = __data();
val data1 = __internal.apply(func1, input);
val data2 = __internal.apply(func2, data1);
val data3 = __internal.apply(func3, data2);
val data4 = __internal.apply(func4, data3);
val data5 = __internal.apply(func5, data4);
val data6 = __internal.apply(func6, data5);
val data7 = __internal.apply(func7, data6);
val data8 = __internal.apply(func8, data7);
val data9 = __internal.apply(func9, data8);
val data10 = __internal.apply(func10, data9);
val data11 = __internal.apply(func11, data10);
val data12 = __internal.apply(func12, data11);
val output = __internal.apply(func13, data12);
return output;
} catch (RuntimeException exception) {
throw exception;
} catch (Exception exception) {
throw ThrowFuncs.exceptionTransformer.value().apply(exception);
}
}
public default
FINALOUTPUT pipe(
Func1 super DATA, DATA1> func1,
Func1 super DATA1, DATA2> func2,
Func1 super DATA2, DATA3> func3,
Func1 super DATA3, DATA4> func4,
Func1 super DATA4, DATA5> func5,
Func1 super DATA5, DATA6> func6,
Func1 super DATA6, DATA7> func7,
Func1 super DATA7, DATA8> func8,
Func1 super DATA8, DATA9> func9,
Func1 super DATA9, DATA10> func10,
Func1 super DATA10, DATA11> func11,
Func1 super DATA11, DATA12> func12,
Func1 super DATA12, OUTPUT> func13,
Catch catchHandler)
throws EXCEPTION {
try {
val input = __data();
val data1 = __internal.apply(func1, input);
val data2 = __internal.apply(func2, data1);
val data3 = __internal.apply(func3, data2);
val data4 = __internal.apply(func4, data3);
val data5 = __internal.apply(func5, data4);
val data6 = __internal.apply(func6, data5);
val data7 = __internal.apply(func7, data6);
val data8 = __internal.apply(func8, data7);
val data9 = __internal.apply(func9, data8);
val data10 = __internal.apply(func10, data9);
val data11 = __internal.apply(func11, data10);
val data12 = __internal.apply(func12, data11);
val output = __internal.apply(func13, data12);
return catchHandler.doCatch(output, null);
} catch (Exception e) {
return catchHandler.doCatch(null, e);
}
}
public default
OUTPUT pipe(
Func1 super DATA, DATA1> func1,
Func1 super DATA1, DATA2> func2,
Func1 super DATA2, DATA3> func3,
Func1 super DATA3, DATA4> func4,
Func1 super DATA4, DATA5> func5,
Func1 super DATA5, DATA6> func6,
Func1 super DATA6, DATA7> func7,
Func1 super DATA7, DATA8> func8,
Func1 super DATA8, DATA9> func9,
Func1 super DATA9, DATA10> func10,
Func1 super DATA10, DATA11> func11,
Func1 super DATA11, DATA12> func12,
Func1 super DATA12, DATA13> func13,
Func1 super DATA13, OUTPUT> func14) {
try {
val input = __data();
val data1 = __internal.apply(func1, input);
val data2 = __internal.apply(func2, data1);
val data3 = __internal.apply(func3, data2);
val data4 = __internal.apply(func4, data3);
val data5 = __internal.apply(func5, data4);
val data6 = __internal.apply(func6, data5);
val data7 = __internal.apply(func7, data6);
val data8 = __internal.apply(func8, data7);
val data9 = __internal.apply(func9, data8);
val data10 = __internal.apply(func10, data9);
val data11 = __internal.apply(func11, data10);
val data12 = __internal.apply(func12, data11);
val data13 = __internal.apply(func13, data12);
val output = __internal.apply(func14, data13);
return output;
} catch (RuntimeException exception) {
throw exception;
} catch (Exception exception) {
throw ThrowFuncs.exceptionTransformer.value().apply(exception);
}
}
public default
FINALOUTPUT pipe(
Func1 super DATA, DATA1> func1,
Func1 super DATA1, DATA2> func2,
Func1 super DATA2, DATA3> func3,
Func1 super DATA3, DATA4> func4,
Func1 super DATA4, DATA5> func5,
Func1 super DATA5, DATA6> func6,
Func1 super DATA6, DATA7> func7,
Func1 super DATA7, DATA8> func8,
Func1 super DATA8, DATA9> func9,
Func1 super DATA9, DATA10> func10,
Func1 super DATA10, DATA11> func11,
Func1 super DATA11, DATA12> func12,
Func1 super DATA12, DATA13> func13,
Func1 super DATA13, OUTPUT> func14,
Catch catchHandler)
throws EXCEPTION {
try {
val input = __data();
val data1 = __internal.apply(func1, input);
val data2 = __internal.apply(func2, data1);
val data3 = __internal.apply(func3, data2);
val data4 = __internal.apply(func4, data3);
val data5 = __internal.apply(func5, data4);
val data6 = __internal.apply(func6, data5);
val data7 = __internal.apply(func7, data6);
val data8 = __internal.apply(func8, data7);
val data9 = __internal.apply(func9, data8);
val data10 = __internal.apply(func10, data9);
val data11 = __internal.apply(func11, data10);
val data12 = __internal.apply(func12, data11);
val data13 = __internal.apply(func13, data12);
val output = __internal.apply(func14, data13);
return catchHandler.doCatch(output, null);
} catch (Exception e) {
return catchHandler.doCatch(null, e);
}
}
public default
OUTPUT pipe(
Func1 super DATA, DATA1> func1,
Func1 super DATA1, DATA2> func2,
Func1 super DATA2, DATA3> func3,
Func1 super DATA3, DATA4> func4,
Func1 super DATA4, DATA5> func5,
Func1 super DATA5, DATA6> func6,
Func1 super DATA6, DATA7> func7,
Func1 super DATA7, DATA8> func8,
Func1 super DATA8, DATA9> func9,
Func1 super DATA9, DATA10> func10,
Func1 super DATA10, DATA11> func11,
Func1 super DATA11, DATA12> func12,
Func1 super DATA12, DATA13> func13,
Func1 super DATA13, DATA14> func14,
Func1 super DATA14, OUTPUT> func15) {
try {
val input = __data();
val data1 = __internal.apply(func1, input);
val data2 = __internal.apply(func2, data1);
val data3 = __internal.apply(func3, data2);
val data4 = __internal.apply(func4, data3);
val data5 = __internal.apply(func5, data4);
val data6 = __internal.apply(func6, data5);
val data7 = __internal.apply(func7, data6);
val data8 = __internal.apply(func8, data7);
val data9 = __internal.apply(func9, data8);
val data10 = __internal.apply(func10, data9);
val data11 = __internal.apply(func11, data10);
val data12 = __internal.apply(func12, data11);
val data13 = __internal.apply(func13, data12);
val data14 = __internal.apply(func14, data13);
val output = __internal.apply(func15, data14);
return output;
} catch (RuntimeException exception) {
throw exception;
} catch (Exception exception) {
throw ThrowFuncs.exceptionTransformer.value().apply(exception);
}
}
public default
FINALOUTPUT pipe(
Func1 super DATA, DATA1> func1,
Func1 super DATA1, DATA2> func2,
Func1 super DATA2, DATA3> func3,
Func1 super DATA3, DATA4> func4,
Func1 super DATA4, DATA5> func5,
Func1 super DATA5, DATA6> func6,
Func1 super DATA6, DATA7> func7,
Func1 super DATA7, DATA8> func8,
Func1 super DATA8, DATA9> func9,
Func1 super DATA9, DATA10> func10,
Func1 super DATA10, DATA11> func11,
Func1 super DATA11, DATA12> func12,
Func1 super DATA12, DATA13> func13,
Func1 super DATA13, DATA14> func14,
Func1 super DATA14, OUTPUT> func15,
Catch catchHandler)
throws EXCEPTION {
try {
val input = __data();
val data1 = __internal.apply(func1, input);
val data2 = __internal.apply(func2, data1);
val data3 = __internal.apply(func3, data2);
val data4 = __internal.apply(func4, data3);
val data5 = __internal.apply(func5, data4);
val data6 = __internal.apply(func6, data5);
val data7 = __internal.apply(func7, data6);
val data8 = __internal.apply(func8, data7);
val data9 = __internal.apply(func9, data8);
val data10 = __internal.apply(func10, data9);
val data11 = __internal.apply(func11, data10);
val data12 = __internal.apply(func12, data11);
val data13 = __internal.apply(func13, data12);
val data14 = __internal.apply(func14, data13);
val output = __internal.apply(func15, data14);
return catchHandler.doCatch(output, null);
} catch (Exception e) {
return catchHandler.doCatch(null, e);
}
}
public default
OUTPUT pipe(
Func1 super DATA, DATA1> func1,
Func1 super DATA1, DATA2> func2,
Func1 super DATA2, DATA3> func3,
Func1 super DATA3, DATA4> func4,
Func1 super DATA4, DATA5> func5,
Func1 super DATA5, DATA6> func6,
Func1 super DATA6, DATA7> func7,
Func1 super DATA7, DATA8> func8,
Func1 super DATA8, DATA9> func9,
Func1 super DATA9, DATA10> func10,
Func1 super DATA10, DATA11> func11,
Func1 super DATA11, DATA12> func12,
Func1 super DATA12, DATA13> func13,
Func1 super DATA13, DATA14> func14,
Func1 super DATA14, DATA15> func15,
Func1 super DATA15, OUTPUT> func16) {
try {
val input = __data();
val data1 = __internal.apply(func1, input);
val data2 = __internal.apply(func2, data1);
val data3 = __internal.apply(func3, data2);
val data4 = __internal.apply(func4, data3);
val data5 = __internal.apply(func5, data4);
val data6 = __internal.apply(func6, data5);
val data7 = __internal.apply(func7, data6);
val data8 = __internal.apply(func8, data7);
val data9 = __internal.apply(func9, data8);
val data10 = __internal.apply(func10, data9);
val data11 = __internal.apply(func11, data10);
val data12 = __internal.apply(func12, data11);
val data13 = __internal.apply(func13, data12);
val data14 = __internal.apply(func14, data13);
val data15 = __internal.apply(func15, data14);
val output = __internal.apply(func16, data15);
return output;
} catch (RuntimeException exception) {
throw exception;
} catch (Exception exception) {
throw ThrowFuncs.exceptionTransformer.value().apply(exception);
}
}
public default
FINALOUTPUT pipe(
Func1 super DATA, DATA1> func1,
Func1 super DATA1, DATA2> func2,
Func1 super DATA2, DATA3> func3,
Func1 super DATA3, DATA4> func4,
Func1 super DATA4, DATA5> func5,
Func1 super DATA5, DATA6> func6,
Func1 super DATA6, DATA7> func7,
Func1 super DATA7, DATA8> func8,
Func1 super DATA8, DATA9> func9,
Func1 super DATA9, DATA10> func10,
Func1 super DATA10, DATA11> func11,
Func1 super DATA11, DATA12> func12,
Func1 super DATA12, DATA13> func13,
Func1 super DATA13, DATA14> func14,
Func1 super DATA14, DATA15> func15,
Func1 super DATA15, OUTPUT> func16,
Catch catchHandler)
throws EXCEPTION {
try {
val input = __data();
val data1 = __internal.apply(func1, input);
val data2 = __internal.apply(func2, data1);
val data3 = __internal.apply(func3, data2);
val data4 = __internal.apply(func4, data3);
val data5 = __internal.apply(func5, data4);
val data6 = __internal.apply(func6, data5);
val data7 = __internal.apply(func7, data6);
val data8 = __internal.apply(func8, data7);
val data9 = __internal.apply(func9, data8);
val data10 = __internal.apply(func10, data9);
val data11 = __internal.apply(func11, data10);
val data12 = __internal.apply(func12, data11);
val data13 = __internal.apply(func13, data12);
val data14 = __internal.apply(func14, data13);
val data15 = __internal.apply(func15, data14);
val output = __internal.apply(func16, data15);
return catchHandler.doCatch(output, null);
} catch (Exception e) {
return catchHandler.doCatch(null, e);
}
}
}