public class Attributes extends Object
Constructor and Description |
---|
Attributes() |
Modifier and Type | Method and Description |
---|---|
Map<Object,Object> |
attributes()
获取全部属性参数
|
<T> T |
clearAttribute()
清空 session 的缓存配置
|
boolean |
containAttribute(Object key)
检查属性参数是否存在
|
Object |
getAttribute(Object key)
获取属性参数
|
boolean |
isModifyed() |
<T> T |
removeAttribute(Object key)
移除属性参数
|
<T> T |
setAttribute(Object key,
Object value)
设置属性参数
|
void |
setModifyed(boolean modifyed) |
public boolean isModifyed()
public void setModifyed(boolean modifyed)
public <T> T setAttribute(Object key, Object value)
T
- 范型key
- 参数名value
- 参数对象public <T> T removeAttribute(Object key)
T
- 范型key
- 参数名public boolean containAttribute(Object key)
key
- 参数名public <T> T clearAttribute()
T
- 范型Copyright © 2020 Voovan. All rights reserved.