mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
add method
This commit is contained in:
parent
ead5e1c13a
commit
ba9bfee1b6
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
# 5.7.4 (2021-07-06)
|
# 5.7.4 (2021-07-08)
|
||||||
|
|
||||||
### 🐣新特性
|
### 🐣新特性
|
||||||
* 【crypto 】 SmUtil.sm4统一返回类型(issue#I3YKD4@Gitee)
|
* 【crypto 】 SmUtil.sm4统一返回类型(issue#I3YKD4@Gitee)
|
||||||
@ -12,6 +12,7 @@
|
|||||||
* 【core 】 CsvWriter增加writer.write(csvData)的方法重载(pr#353@Gitee)
|
* 【core 】 CsvWriter增加writer.write(csvData)的方法重载(pr#353@Gitee)
|
||||||
* 【core 】 新增AbsCollValueMap(issue#I3YXF0@Gitee)
|
* 【core 】 新增AbsCollValueMap(issue#I3YXF0@Gitee)
|
||||||
* 【crypto 】 HOPT缓存改为8位,新增方法(pr#356@Gitee)
|
* 【crypto 】 HOPT缓存改为8位,新增方法(pr#356@Gitee)
|
||||||
|
* 【setting】 Props增加toProperties方法(issue#1701@Github)
|
||||||
|
|
||||||
### 🐞Bug修复
|
### 🐞Bug修复
|
||||||
* 【core 】 修复RadixUtil.decode非static问题(issue#I3YPEH@Gitee)
|
* 【core 】 修复RadixUtil.decode非static问题(issue#I3YPEH@Gitee)
|
||||||
|
@ -61,10 +61,14 @@ public final class Props extends Properties implements BasicTypeGetter<String>,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------- 私有属性 start
|
// ----------------------------------------------------------------------- 私有属性 start
|
||||||
/** 属性文件的URL */
|
/**
|
||||||
|
* 属性文件的URL
|
||||||
|
*/
|
||||||
private URL propertiesFileUrl;
|
private URL propertiesFileUrl;
|
||||||
private WatchMonitor watchMonitor;
|
private WatchMonitor watchMonitor;
|
||||||
/** properties文件编码 */
|
/**
|
||||||
|
* properties文件编码
|
||||||
|
*/
|
||||||
private Charset charset = CharsetUtil.CHARSET_ISO_8859_1;
|
private Charset charset = CharsetUtil.CHARSET_ISO_8859_1;
|
||||||
// ----------------------------------------------------------------------- 私有属性 end
|
// ----------------------------------------------------------------------- 私有属性 end
|
||||||
|
|
||||||
@ -101,6 +105,7 @@ public final class Props extends Properties implements BasicTypeGetter<String>,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------- 构造方法 start
|
// ----------------------------------------------------------------------- 构造方法 start
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 构造
|
* 构造
|
||||||
*/
|
*/
|
||||||
@ -494,6 +499,18 @@ public final class Props extends Properties implements BasicTypeGetter<String>,
|
|||||||
return (String) value;
|
return (String) value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 转换为标准的{@link Properties}对象
|
||||||
|
*
|
||||||
|
* @return {@link Properties}对象
|
||||||
|
* @since 5.7.4
|
||||||
|
*/
|
||||||
|
public Properties toProperties() {
|
||||||
|
final Properties properties = new Properties();
|
||||||
|
properties.putAll(this);
|
||||||
|
return properties;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 将配置文件转换为Bean,支持嵌套Bean<br>
|
* 将配置文件转换为Bean,支持嵌套Bean<br>
|
||||||
* 支持的表达式:
|
* 支持的表达式:
|
||||||
@ -580,6 +597,7 @@ public final class Props extends Properties implements BasicTypeGetter<String>,
|
|||||||
// ----------------------------------------------------------------------- Get end
|
// ----------------------------------------------------------------------- Get end
|
||||||
|
|
||||||
// ----------------------------------------------------------------------- Set start
|
// ----------------------------------------------------------------------- Set start
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设置值,无给定键创建之。设置后未持久化
|
* 设置值,无给定键创建之。设置后未持久化
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user