/*
 * Java Genetic Algorithm Library (@!identifier!@).
 * Copyright (c) @!year!@ Franz Wilhelmstötter
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 *
 * Author:
 * 	 Franz Wilhelmstötter (franz.wilhelmstoetter@gmx.at)
 * 	
 */
package org.jenetics.util;

/**
 * A function of 1 parameter.
 *
 * @author <a href="mailto:franz.wilhelmstoetter@gmx.at">Franz Wilhelmstötter</a>
 * @version $Id$
 */
public interface Function<T, R> {

	/**
	 * Convert a type {@code A} to type {@code B}.
	 *
	 * @param value the value to convert.
	 * @return the converted value.
	 */
	public R apply(T value);
	
}

@@ -907,18 +907,16 @@
 x.at)%0A *
- %09
 %0A */%0Apac
@@ -1128,50 +1128,55 @@
 %09 * 
-Convert a type %7B@code A%7D to type %7B@code B%7D
+Apply the body of this function to the argument
 .%0A%09 
@@ -1202,23 +1202,24 @@
 the 
-value to conver
+function argumen
 t.%0A%09
@@ -1237,23 +1237,38 @@
 the 
-converted value
+result of function application
 .%0A%09 
@@ -1286,16 +1286,22 @@
 R apply(
+final 
 T value)
@@ -1302,12 +1302,11 @@
 value);%0A
-%09
 %0A%7D%0A

Update javadoc.