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

fr.vergne.translation.util.Switcher Maven / Gradle / Ivy

The newest version!
package fr.vergne.translation.util;

/**
 * A {@link Switcher} aims at providing an easy way to switch between two
 * representations of a value.
 * 
 * @author Matthieu VERGNE 
 * 
 * @param 
 *            the first representation type
 * @param 
 *            the second representation type
 */
public interface Switcher {
	/**
	 * 
	 * @param value
	 *            the value in the first representation
	 * @return the value in the second representation
	 */
	public T2 switchForth(T1 value);

	/**
	 * 
	 * @param value
	 *            the value in the second representation
	 * @return the value in the first representation
	 */
	public T1 switchBack(T2 value);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy