mirror of
https://github.com/LamGC/ContentGrabbingJi.git
synced 2025-04-29 22:27:33 +00:00
[Optimize][Change] 移除不必要的注解, 更改 Factory 中的泛型标记为合适的标记;
[Optimize] SingleCacheStore 移除不必要的语法规范检查注解(My bad :P); [Change] CacheStoreFactory 更改'newListCacheStore'和'newSetCacheStore'的泛型标记('V(value)' -> 'E(element)');
This commit is contained in:
parent
3ecaf4db67
commit
ca6ee0972f
@ -38,18 +38,18 @@ public interface CacheStoreFactory {
|
||||
* 获取一个新的有序列表缓存存储容器.
|
||||
* @param identify 缓存标识.
|
||||
* @param converter 元素类型与 String 的转换器.
|
||||
* @param <V> 元素类型.
|
||||
* @param <E> 元素类型.
|
||||
* @return 返回新的有序列表缓存存储容器.
|
||||
*/
|
||||
<V> ListCacheStore<V> newListCacheStore(String identify, StringConverter<V> converter);
|
||||
<E> ListCacheStore<E> newListCacheStore(String identify, StringConverter<E> converter);
|
||||
|
||||
/**
|
||||
* 获取一个新的无序集合缓存存储容器.
|
||||
* @param identify 缓存标识.
|
||||
* @param converter 元素类型与 String 的转换器.
|
||||
* @param <V> 元素类型.
|
||||
* @param <E> 元素类型.
|
||||
* @return 返回新的无序集合缓存存储容器.
|
||||
*/
|
||||
<V> SetCacheStore<V> newSetCacheStore(String identify, StringConverter<V> converter);
|
||||
<E> SetCacheStore<E> newSetCacheStore(String identify, StringConverter<E> converter);
|
||||
|
||||
}
|
||||
|
@ -44,7 +44,6 @@ public interface SingleCacheStore<V> extends CacheStore<V> {
|
||||
* @return 如果成功返回 true, 当 key 已存在, 或设置失败时返回 false.
|
||||
* @throws NullPointerException 当 key 或 value 为 null 时抛出; 本方法不允许存储 null 值, 因为 null 代表"没有/不存在".
|
||||
*/
|
||||
@SuppressWarnings("AlibabaLowerCamelCaseVariableNaming")
|
||||
boolean setIfNoExist(String key, V value);
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user