
jp.gopay.sdk.utils.MetadataAdapter Maven / Gradle / Ivy
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);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy