
package imagej.ops.loop;

import imagej.ops.AbstractFunction;
import imagej.ops.Function;

import org.scijava.plugin.Parameter;

/**
 * Abstract implementation of a {@link FunctionLoop}.
 * 
 * @author Christian Dietz
 * @param <I>
 * @param <O>
 */
public abstract class AbstractFunctionLoop<F extends Function<I, I>, I> extends
	AbstractFunction<I, I> implements FunctionLoop<I>
{

	/**
	 * Number of iterations
	 */
	@Parameter
	protected Function<I, I> function;

	/**
	 * Buffer for intermediate results
	 */
	@Parameter(required = false)
	protected I buffer;

	/**
	 * Number of iterations
	 */
	@Parameter
	protected int n;

	/**
	 * @return the {@link Function} to be applied
	 */
	@Override
	public Function<I, I> getFunction() {
		return function;
	}

	/**
	 * @param function to be applied
	 */
	@Override
	public void setFunction(final Function<I, I> function) {
		this.function = function;
	}
}

@@ -630,65 +630,8 @@
 n;%0A%0A
-%09/**%0A%09 * @return the %7B@link Function%7D to be applied%0A%09 */%0A
 %09@Ov
@@ -703,52 +703,8 @@
 %09%7D%0A%0A
-%09/**%0A%09 * @param function to be applied%0A%09 */%0A
 %09@Ov

Remove unnecessary javadoc