
pro.jk.ejoker.common.service.IJSONStringConverterPro Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ejoker-common Show documentation
Show all versions of ejoker-common Show documentation
EJoker is a CQRS + EventSourcing framwork
package pro.jk.ejoker.common.service;
import pro.jk.ejoker.common.utils.genericity.TypeRefer;
/**
* 支持用TypeRefer来约束具体类型的情况下做二维化和立体化转换。
* @author jiefzz.lon
*
*/
public interface IJSONStringConverterPro {
/**
* 适用于声明就不带泛型的情况
*/
public String convert(Object object);
public String convert(Object object, TypeRefer tr);
public T revert(String json, TypeRefer tr);
@SuppressWarnings("unchecked")
default public T revert(String json, Class> clazz) {
TypeRefer> trMock = new TypeRefer
© 2015 - 2025 Weber Informatics LLC | Privacy Policy