![JAR search and dependency download from the Maven repository](/logo.png)
org.kernelab.basis.Mapper Maven / Gradle / Ivy
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