All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.wantedtech.common.xpresso.functional.ParametrizedFunction Maven / Gradle / Ivy

The newest version!
package com.wantedtech.common.xpresso.functional;

import com.wantedtech.common.xpresso.x;
import com.wantedtech.common.xpresso.types.list;

/**
 * ParametrizedFunction is an abstract class that extends a Function
 * with a possibility to take a supplementary parameter that can be used
 * in the apply method of Function.
 *
 * Example 1: @see x#joinOn(String) joinOn
 *                   
 */
public abstract class ParametrizedFunction implements Function{
	public list params = x.list();
	public ParametrizedFunction params(Iterable values){
		params = x.list(values);
		return this;
	}
	public ParametrizedFunction params(){
		params = x.list();
		return this;
	}
}