类 SearchableEnvironment

  • 所有已实现的接口:
    NacosEnvironment

    class SearchableEnvironment
    extends java.lang.Object
    implements NacosEnvironment
    Searchable environment.
    作者:
    onewe
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      java.lang.Boolean getBoolean​(java.lang.String key)
      get boolean, if the value can not be got by the special key, the null will be returned.
      java.lang.Boolean getBoolean​(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.Integer getInteger​(java.lang.String key)
      get integer, if the value can not be got by the special key, the null will be returned.
      java.lang.Integer getInteger​(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.Long getLong​(java.lang.String key)
      get long, if the value can not be got by the special key, the null will be returned.
      java.lang.Long getLong​(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.String getProperty​(java.lang.String key)
      get property, if the value can not be got by the special key, the null will be returned.
      java.lang.String getProperty​(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.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • SearchableEnvironment

        SearchableEnvironment​(java.util.Properties properties)
    • 方法详细资料

      • getProperty

        public java.lang.String getProperty​(java.lang.String key)
        从接口复制的说明: NacosEnvironment
        get 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)
        从接口复制的说明: NacosEnvironment
        get property, if the value can not be got by the special key, the default value will be returned.
        指定者:
        getProperty 在接口中 NacosEnvironment
        参数:
        key - special key
        defaultValue - default value
        返回:
        string value or default value.
      • getBoolean

        public java.lang.Boolean getBoolean​(java.lang.String key)
        从接口复制的说明: NacosEnvironment
        get 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)
        从接口复制的说明: NacosEnvironment
        get boolean, if the value can not be got by the special key, the default value will be returned.
        指定者:
        getBoolean 在接口中 NacosEnvironment
        参数:
        key - special key
        defaultValue - default value
        返回:
        boolean value or defaultValue.
      • getInteger

        public java.lang.Integer getInteger​(java.lang.String key)
        从接口复制的说明: NacosEnvironment
        get 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)
        从接口复制的说明: NacosEnvironment
        get integer, if the value can not be got by the special key, the default value will be returned.
        指定者:
        getInteger 在接口中 NacosEnvironment
        参数:
        key - special key
        defaultValue - default value
        返回:
        integer value or default value
      • getLong

        public java.lang.Long getLong​(java.lang.String key)
        从接口复制的说明: NacosEnvironment
        get 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)
        从接口复制的说明: NacosEnvironment
        get long, if the value can not be got by the special key, the default value will be returned.
        指定者:
        getLong 在接口中 NacosEnvironment
        参数:
        key - special key
        defaultValue - default value
        返回:
        long value or default value