
net.sf.aguacate.function.spi.impl.FunctionRename Maven / Gradle / Ivy
package net.sf.aguacate.function.spi.impl;
import java.util.Collection;
import net.sf.aguacate.function.FunctionEvalResult;
import net.sf.aguacate.function.Parameter;
import net.sf.aguacate.function.spi.AbstractFunction1;
public class FunctionRename extends AbstractFunction1 {
public FunctionRename(Collection methods, String name, Parameter parameter, String outputName) {
super(methods, name, parameter, outputName);
}
@Override
protected FunctionEvalResult evaluate(Object value) {
if (value == null) {
return new FunctionEvalResult("Null value", null);
} else {
return new FunctionEvalResult(null, value);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy