类 SearchableProperties

  • 所有已实现的接口:
    NacosClientProperties

    class SearchableProperties
    extends java.lang.Object
    implements NacosClientProperties
    Searchable NacosClientProperties. the SearchableProperties that it can be specified search order by nacos.env.first
    作者:
    onewe
    • 构造器详细资料

      • SearchableProperties

        private SearchableProperties()
    • 方法详细资料

      • getProperty

        public java.lang.String getProperty​(java.lang.String key)
        从接口复制的说明: NacosClientProperties
        get property, if the value can not be got by the special key, the null will be returned.
        指定者:
        getProperty 在接口中 NacosClientProperties
        参数:
        key - special key
        返回:
        string value or null.
      • getProperty

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

        public java.lang.Boolean getBoolean​(java.lang.String key)
        从接口复制的说明: NacosClientProperties
        get boolean, if the value can not be got by the special key, the null will be returned.
        指定者:
        getBoolean 在接口中 NacosClientProperties
        参数:
        key - special key
        返回:
        boolean value or null.
      • getBoolean

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

        public java.lang.Integer getInteger​(java.lang.String key)
        从接口复制的说明: NacosClientProperties
        get integer, if the value can not be got by the special key, the null will be returned.
        指定者:
        getInteger 在接口中 NacosClientProperties
        参数:
        key - special key
        返回:
        integer value or null
      • getInteger

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

        public java.lang.Long getLong​(java.lang.String key)
        从接口复制的说明: NacosClientProperties
        get long, if the value can not be got by the special key, the null will be returned.
        指定者:
        getLong 在接口中 NacosClientProperties
        参数:
        key - special key
        返回:
        long value or null
      • getLong

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

        public boolean containsKey​(java.lang.String key)
        从接口复制的说明: NacosClientProperties
        Tests if the specified object is a key in this NacosClientProperties.
        指定者:
        containsKey 在接口中 NacosClientProperties
        参数:
        key - key – possible key
        返回:
        true if and only if the specified object is a key in this NacosClientProperties, false otherwise.
      • search

        private <T> java.util.Optional<T> search​(java.lang.String key,
                                                 java.lang.Class<T> targetType)