jp.gopay.sdk.utils.MetadataAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gopay-java-sdk Show documentation
Show all versions of gopay-java-sdk Show documentation
Official Gyro-n Payments Java SDK
package jp.gopay.sdk.utils;
import jp.gopay.sdk.types.MetadataMap;
/**
* This is an interface to adapt a metadata from {@link MetadataMap}({@literal LinkedHashMap}) to something.
* If you need to deal with a metadata as another type, implement this interface.
*
* @param a type to be converted
*/
public interface MetadataAdapter {
MetadataMap serialize(T obj);
T deserialize(MetadataMap metadata);
}