Package icu.easyj.core.context
Class ContextUtils
java.lang.Object
icu.easyj.core.context.ContextUtils
上下文工具类
- Author:
- wangliang181230
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ContextUtils
public ContextUtils()
-
-
Method Details
-
put
设置值- Type Parameters:
V- 上下文数据类型- Parameters:
key- 键value- 值- Returns:
- previousValue 返回以前的值 或 null
-
get
获取值- Type Parameters:
V- 值类型- Parameters:
key- 键- Returns:
- value 值
-
remove
移除值- Type Parameters:
V- 值类型- Parameters:
key- 键- Returns:
- removedValue 返回被移除的值 或 null
-
remove
移除值,如果与value相等的话- Parameters:
key- 键value- 目标值- Returns:
- true=原有值与目标值相等 | false=原有值与目标值不相等
-
containsKey
是否含有键- Parameters:
key- 键- Returns:
- true=包含 | false=不包含
-
clear
public static void clear()清空上下文
-