Commit 50ddefdf authored by yanzg's avatar yanzg

接口文档的支持

parent 59ce0ba1
...@@ -8,7 +8,18 @@ import java.util.Map; ...@@ -8,7 +8,18 @@ import java.util.Map;
* @param <T> * @param <T>
* @author 颜佐光 * @author 颜佐光
*/ */
public interface DataDaoKeyConvert<T, M> extends DataDaoKey<T> { public abstract class DataDaoKeyConvert<T, M> implements DataDaoKey<T> {
/**
* 将当前对象的属性,写入到历史对象中,用于更新函数
*
* @param history
* @param now
*/
@Override
public void set(T history, T now) {
}
/** /**
* 获取关键字 * 获取关键字
* *
...@@ -16,5 +27,5 @@ public interface DataDaoKeyConvert<T, M> extends DataDaoKey<T> { ...@@ -16,5 +27,5 @@ public interface DataDaoKeyConvert<T, M> extends DataDaoKey<T> {
* @param from 来源对象 * @param from 来源对象
* @return * @return
*/ */
T convert(Map<String, T> mapHistory, M from); abstract T convert(Map<String, T> mapHistory, M from);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment