com.linkedin.dagli.transformer.Tupled5 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
DAG-oriented machine learning framework for bug-resistant, readable, efficient, maintainable and trivially deployable models in Java and other JVM languages
// AUTOGENERATED CODE. DO NOT MODIFY DIRECTLY! Instead, please modify the transformer/TupledX.ftl file.
// See the README in the module's src/template directory for details.
package com.linkedin.dagli.transformer;
import com.linkedin.dagli.annotation.equality.ValueEquality;
import com.linkedin.dagli.producer.Producer;
import com.linkedin.dagli.tuple.Tuple5;
/**
* A transformer that produces a tuple of the values it receives as inputs.
*/
@ValueEquality
public class Tupled5 extends
AbstractPreparedTransformer5, Tupled5> {
private static final long serialVersionUID = 1;
/**
* Creates a new instance with the specified inputs.
*/
public Tupled5(Producer extends A> input1, Producer extends B> input2, Producer extends C> input3,
Producer extends D> input4, Producer extends E> input5) {
super(input1, input2, input3, input4, input5);
}
@Override
public Tuple5 apply(A value1, B value2, C value3, D value4, E value5) {
return Tuple5.of(value1, value2, value3, value4, value5);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy