| 构造器和说明 |
|---|
PropertyAdaptor() |
| 限定符和类型 | 方法和说明 |
|---|---|
Map<String,String> |
asMap()
转换为 map
(1)是属性的一次拷贝,不会影响原来的属性信息。
|
Properties |
asProperties()
转换为配置
|
boolean |
containsKey(String s) |
IProperty |
flush(OutputStream outputStream,
String charset)
向指定路径刷新文件信息
(1)允许多次执行
(2)允许指定不同的文件信息
|
Object |
getAttr(String s) |
Boolean |
getAttrBoolean(String s) |
Byte |
getAttrByte(String s) |
Character |
getAttrCharacter(String s) |
Double |
getAttrDouble(String s) |
Float |
getAttrFloat(String s) |
Integer |
getAttrInteger(String s) |
Long |
getAttrLong(String s) |
com.github.houbb.heaven.util.util.Optional<Object> |
getAttrOptional(String s) |
Short |
getAttrShort(String s) |
String |
getAttrString(String s) |
Set<String> |
keySet() |
IProperty |
load(InputStream inputStream,
String charset)
从指定路径加载文件信息
(1)允许多次执行
(2)允许指定不同的文件信息
|
IProperty |
putAttr(Map<String,String> map)
设置一个 map 属性
|
com.github.houbb.heaven.support.attr.IAttributeContext |
putAttr(String s,
Object o) |
com.github.houbb.heaven.support.attr.IAttributeContext |
removeAttr(String s) |
public com.github.houbb.heaven.support.attr.IAttributeContext putAttr(String s, Object o)
putAttr 在接口中 com.github.houbb.heaven.support.attr.IAttributeContextpublic Object getAttr(String s)
getAttr 在接口中 com.github.houbb.heaven.support.attr.IAttributeContextpublic com.github.houbb.heaven.util.util.Optional<Object> getAttrOptional(String s)
getAttrOptional 在接口中 com.github.houbb.heaven.support.attr.IAttributeContextpublic String getAttrString(String s)
getAttrString 在接口中 com.github.houbb.heaven.support.attr.IAttributeContextpublic Boolean getAttrBoolean(String s)
getAttrBoolean 在接口中 com.github.houbb.heaven.support.attr.IAttributeContextpublic Character getAttrCharacter(String s)
getAttrCharacter 在接口中 com.github.houbb.heaven.support.attr.IAttributeContextpublic Byte getAttrByte(String s)
getAttrByte 在接口中 com.github.houbb.heaven.support.attr.IAttributeContextpublic Short getAttrShort(String s)
getAttrShort 在接口中 com.github.houbb.heaven.support.attr.IAttributeContextpublic Integer getAttrInteger(String s)
getAttrInteger 在接口中 com.github.houbb.heaven.support.attr.IAttributeContextpublic Float getAttrFloat(String s)
getAttrFloat 在接口中 com.github.houbb.heaven.support.attr.IAttributeContextpublic Double getAttrDouble(String s)
getAttrDouble 在接口中 com.github.houbb.heaven.support.attr.IAttributeContextpublic Long getAttrLong(String s)
getAttrLong 在接口中 com.github.houbb.heaven.support.attr.IAttributeContextpublic com.github.houbb.heaven.support.attr.IAttributeContext removeAttr(String s)
removeAttr 在接口中 com.github.houbb.heaven.support.attr.IAttributeContextpublic boolean containsKey(String s)
containsKey 在接口中 com.github.houbb.heaven.support.attr.IAttributeContextpublic Set<String> keySet()
keySet 在接口中 com.github.houbb.heaven.support.attr.IAttributeContextpublic IProperty load(InputStream inputStream, String charset)
IPropertypublic IProperty flush(OutputStream outputStream, String charset)
IPropertypublic Properties asProperties()
IPropertyasProperties 在接口中 IPropertyCopyright © 2021. All rights reserved.