类 SearchableEnvironment
- java.lang.Object
-
- com.alibaba.nacos.client.env.SearchableEnvironment
-
- 所有已实现的接口:
NacosEnvironment
class SearchableEnvironment extends java.lang.Object implements NacosEnvironment
Searchable environment.- 作者:
- onewe
-
-
字段概要
字段 修饰符和类型 字段 说明 private PropertySourceSearchsourceSearch
-
构造器概要
构造器 构造器 说明 SearchableEnvironment(java.util.Properties properties)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 java.lang.BooleangetBoolean(java.lang.String key)get boolean, if the value can not be got by the special key, the null will be returned.java.lang.BooleangetBoolean(java.lang.String key, java.lang.Boolean defaultValue)get boolean, if the value can not be got by the special key, the default value will be returned.java.lang.IntegergetInteger(java.lang.String key)get integer, if the value can not be got by the special key, the null will be returned.java.lang.IntegergetInteger(java.lang.String key, java.lang.Integer defaultValue)get integer, if the value can not be got by the special key, the default value will be returned.java.lang.LonggetLong(java.lang.String key)get long, if the value can not be got by the special key, the null will be returned.java.lang.LonggetLong(java.lang.String key, java.lang.Long defaultValue)get long, if the value can not be got by the special key, the default value will be returned.java.lang.StringgetProperty(java.lang.String key)get property, if the value can not be got by the special key, the null will be returned.java.lang.StringgetProperty(java.lang.String key, java.lang.String defaultValue)get property, if the value can not be got by the special key, the default value will be returned.
-
-
-
字段详细资料
-
sourceSearch
private final PropertySourceSearch sourceSearch
-
-
方法详细资料
-
getProperty
public java.lang.String getProperty(java.lang.String key)
从接口复制的说明:NacosEnvironmentget property, if the value can not be got by the special key, the null will be returned.- 指定者:
getProperty在接口中NacosEnvironment- 参数:
key- special key- 返回:
- string value or null.
-
getProperty
public java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)从接口复制的说明:NacosEnvironmentget property, if the value can not be got by the special key, the default value will be returned.- 指定者:
getProperty在接口中NacosEnvironment- 参数:
key- special keydefaultValue- default value- 返回:
- string value or default value.
-
getBoolean
public java.lang.Boolean getBoolean(java.lang.String key)
从接口复制的说明:NacosEnvironmentget boolean, if the value can not be got by the special key, the null will be returned.- 指定者:
getBoolean在接口中NacosEnvironment- 参数:
key- special key- 返回:
- boolean value or null.
-
getBoolean
public java.lang.Boolean getBoolean(java.lang.String key, java.lang.Boolean defaultValue)从接口复制的说明:NacosEnvironmentget boolean, if the value can not be got by the special key, the default value will be returned.- 指定者:
getBoolean在接口中NacosEnvironment- 参数:
key- special keydefaultValue- default value- 返回:
- boolean value or defaultValue.
-
getInteger
public java.lang.Integer getInteger(java.lang.String key)
从接口复制的说明:NacosEnvironmentget integer, if the value can not be got by the special key, the null will be returned.- 指定者:
getInteger在接口中NacosEnvironment- 参数:
key- special key- 返回:
- integer value or null
-
getInteger
public java.lang.Integer getInteger(java.lang.String key, java.lang.Integer defaultValue)从接口复制的说明:NacosEnvironmentget integer, if the value can not be got by the special key, the default value will be returned.- 指定者:
getInteger在接口中NacosEnvironment- 参数:
key- special keydefaultValue- default value- 返回:
- integer value or default value
-
getLong
public java.lang.Long getLong(java.lang.String key)
从接口复制的说明:NacosEnvironmentget long, if the value can not be got by the special key, the null will be returned.- 指定者:
getLong在接口中NacosEnvironment- 参数:
key- special key- 返回:
- long value or null
-
getLong
public java.lang.Long getLong(java.lang.String key, java.lang.Long defaultValue)从接口复制的说明:NacosEnvironmentget long, if the value can not be got by the special key, the default value will be returned.- 指定者:
getLong在接口中NacosEnvironment- 参数:
key- special keydefaultValue- default value- 返回:
- long value or default value
-
-