界面会话共享的可变状态。
状态可用于动态区分页、筛选、临时输入和 state.* 占位符。
-
嵌套类概要
-
方法概要
从接口继承的方法 java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
方法详细资料
-
str
读取字符串值。- 参数:
key- 状态键def- 缺失值的默认结果- 返回:
- 字符串值或默认结果
-
integer
读取整数值。- 参数:
key- 状态键def- 缺失或无法转换时的默认结果- 返回:
- 整数值或默认结果
-
bool
读取布尔值。- 参数:
key- 状态键def- 缺失值的默认结果- 返回:
- 布尔值;字符串仅在忽略大小写等于
true时为真
-