public interface IEnvPropUtil
Define common Environment and Properties operations
- 導入されたバージョン:
- 1.0.0
- バージョン:
- 1.0.0
- 作成者:
- yui-KITAMURA
-
メソッドの概要
修飾子とタイプメソッド説明Get System Environment Value stored withkey
Get System Environment Value stored withkey
.Get properties value.Get properties value.void
Set properties value.boolean
setPropForce
(String key, String value) Set properties value.
-
メソッドの詳細
-
getEnv
Get System Environment Value stored withkey
- パラメータ:
key
- system environment variables key- 戻り値:
- if exists, then that value, else
""(Empty string)
-
getEnv
Get System Environment Value stored withkey
. If not exists, then return thedefaultValue
- パラメータ:
key
- system environment variables keydefaultValue
- default value when the variables not exists- 戻り値:
- if exists, then that value, else the
defaultValue
-
getProp
Get properties value.- パラメータ:
key
- properties key- 戻り値:
- if exists, then that value, else
""(Empty string)
-
getProp
Get properties value. If not exists, then return thedefaultValue
- パラメータ:
key
- properties keydefaultValue
- default value when the properties not exists- 戻り値:
- if exists, then that properties value, else the
defaultValue
-
setProp
Set properties value. If already exist, then throw exception.- パラメータ:
key
- properties keyvalue
- set value- 例外:
IllegalStateException
- Already properties key-value set exists
-
setPropForce
Set properties value. If already exist, then overwrite the value.- パラメータ:
key
- properties keyvalue
- set value- 戻り値:
true
when overwrite
-