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

top.jfunc.common.string.FromString Maven / Gradle / Ivy

There is a newer version: 1.8.5
Show newest version
package top.jfunc.common.string;

/**
 * 方法泛型,可以针对很多类统一处理
 * @see FromStringHandler
 * @author xiongshiyan at 2019/5/6 , contact me with email [email protected] or phone 15208384257
 */
@FunctionalInterface
public interface FromString {
    /**
     * 可能是基于Json、XML或者自定义的将String转换为Java对象
     * @param src 字符串
     * @param toClass 转换成的class
     * @return T
     */
     T as(String src, Class toClass);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy