public interface NacosEnvironment
| 限定符和类型 | 方法和说明 |
|---|---|
Boolean |
getBoolean(String key)
get boolean, if the value can not be got by the special key, the null will be returned.
|
Boolean |
getBoolean(String key,
Boolean defaultValue)
get boolean, if the value can not be got by the special key, the default value will be returned.
|
Integer |
getInteger(String key)
get integer, if the value can not be got by the special key, the null will be returned.
|
Integer |
getInteger(String key,
Integer defaultValue)
get integer, if the value can not be got by the special key, the default value will be returned.
|
Long |
getLong(String key)
get long, if the value can not be got by the special key, the null will be returned.
|
Long |
getLong(String key,
Long defaultValue)
get long, if the value can not be got by the special key, the default value will be returned.
|
String |
getProperty(String key)
get property, if the value can not be got by the special key, the null will be returned.
|
String |
getProperty(String key,
String defaultValue)
get property, if the value can not be got by the special key, the default value will be returned.
|
String getProperty(String key)
key - special keyString getProperty(String key, String defaultValue)
key - special keydefaultValue - default valueBoolean getBoolean(String key)
key - special keyBoolean getBoolean(String key, Boolean defaultValue)
key - special keydefaultValue - default valueInteger getInteger(String key)
key - special keyInteger getInteger(String key, Integer defaultValue)
key - special keydefaultValue - default valueLong getLong(String key)
key - special keyCopyright © 2018–2022 Alibaba Group. All rights reserved.