
fr.vergne.translation.util.Switcher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of translation-core Show documentation
Show all versions of translation-core Show documentation
Basic features to support a translation project.
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