com.univapay.sdk.utils.MetadataAdapter Maven / Gradle / Ivy
package com.univapay.sdk.utils;
import com.univapay.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