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

com.aiwiown.face.internal.mapping.Converter Maven / Gradle / Ivy

There is a newer version: 3.0.9
Show newest version
package com.aiwiown.face.internal.mapping;

import com.aiwiown.face.ApiException;
import com.aiwiown.face.ApiResponse;

/**
 * 动态格式转换器。
 *
 * @author carver.gu
 * @since 1.0, Apr 11, 2010
 */
public interface Converter {

    /**
     * 把字符串转换为响应对象。
     *
     * @param    领域泛型
     * @param rsp   响应字符串
     * @param clazz 领域类型
     * @return 响应对象
     * @throws ApiException
     */
     T toResponse(String rsp, Class clazz)
            throws ApiException;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy