Showing
1 changed file
with
7 additions
and
3 deletions
@@ -2,10 +2,14 @@ package com.yoho.search.recall.scene.models.cache; | @@ -2,10 +2,14 @@ package com.yoho.search.recall.scene.models.cache; | ||
2 | 2 | ||
3 | import com.yoho.search.base.utils.Transfer; | 3 | import com.yoho.search.base.utils.Transfer; |
4 | 4 | ||
5 | -public abstract class AbstractCacheResponse<V> { | 5 | +/** |
6 | + * 相应结果转String的序列化类 | ||
7 | + * @param <Response> | ||
8 | + */ | ||
9 | +public abstract class AbstractCacheResponse<Response> { | ||
6 | 10 | ||
7 | - public abstract Transfer<String, V> getToResponseTransfer(); | 11 | + public abstract Transfer<String, Response> getToResponseTransfer(); |
8 | 12 | ||
9 | - public abstract Transfer<V, String> getFromResponseTransfer(); | 13 | + public abstract Transfer<Response, String> getFromResponseTransfer(); |
10 | 14 | ||
11 | } | 15 | } |
-
Please register or login to post a comment