...
|
...
|
@@ -2,10 +2,14 @@ package com.yoho.search.recall.scene.models.cache; |
|
|
|
|
|
import com.yoho.search.base.utils.Transfer;
|
|
|
|
|
|
public abstract class AbstractCacheResponse<V> {
|
|
|
/**
|
|
|
* 相应结果转String的序列化类
|
|
|
* @param <Response>
|
|
|
*/
|
|
|
public abstract class AbstractCacheResponse<Response> {
|
|
|
|
|
|
public abstract Transfer<String, V> getToResponseTransfer();
|
|
|
public abstract Transfer<String, Response> getToResponseTransfer();
|
|
|
|
|
|
public abstract Transfer<V, String> getFromResponseTransfer();
|
|
|
public abstract Transfer<Response, String> getFromResponseTransfer();
|
|
|
|
|
|
} |
...
|
...
|
|