com.rbmhtechnology.vind.annotations.util.FunctionHelpers Maven / Gradle / Ivy
package com.rbmhtechnology.vind.annotations.util;
import org.apache.commons.beanutils.PropertyUtils;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.collections.ListUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.beans.PropertyDescriptor;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Collection;
import java.util.List;
import java.util.function.Function;
import java.util.stream.Collectors;
/**
* Created by fonso on 28.03.17.
*/
public class FunctionHelpers {
public static abstract class ParameterFunction implements Function {
private List parameters = ListUtils.EMPTY_LIST;
public Function setParameters(List parameters) {
this.parameters = parameters;
return this;
}
public List getParameters() {
return parameters;
}
}
public final static class GetterFunction extends ParameterFunction