All Downloads are FREE. Search and download functionalities are using the official Maven repository.

top.jfunc.json.Serializable Maven / Gradle / Ivy

The newest version!
package top.jfunc.json;

/**
 * 1.JavaBean序列化为String
 * 2.String反序列化为JavaBean
 * @author xiongshiyan at 2018/6/10
 */
public interface Serializable {
    /**
     * 序列化,把一个JavaBean序列化为String
     * @param javaBean JavaBean对象
     * @return String
     */
    String serialize(Object javaBean);

    /**
     * 反序列化,把一个字符串反序列化为一个JavaBean
     * @param jsonString Json String
     * @param clazz JavaBean Class
     */
     T deserialize(String jsonString, Class clazz);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy