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

org.kernelab.basis.Mapper Maven / Gradle / Ivy

There is a newer version: 0.0.19-RELEASE
Show newest version
package org.kernelab.basis;

import java.util.Collection;

/**
 * The Mapper interface is to achieve the mapping operation.
 * 
 * @author Dilly King
 * 
 * @param 
 *            The generic type of the elements to be mapped in a certain
 *            Collection.
 * @param 
 *            The generic type of the mapping result.
 */
public interface Mapper
{
	/**
	 * To map a value into another value.
	 * 
	 * @param el
	 *            The certain value to be mapped.
	 * @return A mapped value.
	 * @throws Terminator
	 *             to terminate the mapping procedure. {@link Terminator#SIGNAL}
	 *             is recommended.
	 * @see Tools#map(Iterable, Mapper, Collection)
	 */
	public V map(K el) throws Exception;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy