org.openstreetmap.atlas.utilities.conversion.TwoWayConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of atlas Show documentation
Show all versions of atlas Show documentation
"Library to load OSM data into an Atlas format"
The newest version!
package org.openstreetmap.atlas.utilities.conversion;
/**
* Not only can convert from A type to B type, this interface supports backward convert from B to A
* as well
*
* @param
* The source type
* @param
* The target type
* @author tony
*/
public interface TwoWayConverter extends Converter
{
A backwardConvert(B object);
default Converter revert()
{
return object -> backwardConvert(object);
}
}