
com.magictools.json.JSONBeanParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of magic-tools-all Show documentation
Show all versions of magic-tools-all Show documentation
magic-tools 是一个小而全的Java工具类库,通过静态方法封装,降低相关API的学习成本,提高工作效率,使Java拥有函数式语言般的优雅,让Java语言也可以“甜甜的”。
The newest version!
package com.magictools.json;
/**
* 实现此接口的类可以通过实现{@code parse(value)}方法来将JSON中的值解析为此对象的值
*
* @author Looly
* @since 5.7.8
*/
public interface JSONBeanParser {
/**
* value转Bean
* 通过实现此接口,将JSON中的值填充到当前对象的字段值中,即对象自行实现JSON反序列化逻辑
*
* @param value 被解析的对象类型,可能为JSON或者普通String、Number等
*/
void parse(T value);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy