接口 IterableConfigurationPropertySource
- 所有已知实现类:
MapConfigurationPropertySource
public interface IterableConfigurationPropertySource
extends ConfigurationPropertySource, Iterable<ConfigurationPropertyName>
A
ConfigurationPropertySource with a fully Iterable set of entries.
Implementations of this interface must be able to iterate over all
contained configuration properties. Any non-null result from
ConfigurationPropertySource.getConfigurationProperty(ConfigurationPropertyName) must also have an
equivalent entry in the iterator.- 从以下版本开始:
- 2.0.0
- 作者:
- Phillip Webb, Madhura Bhave
- 另请参阅:
-
方法概要
修饰符和类型方法说明default ConfigurationPropertyStateReturns if the source contains any descendants of the specified name.filter(Predicate<ConfigurationPropertyName> filter) Return a filtered variant of this source, containing only names that match the givenPredicate.default Iterator<ConfigurationPropertyName> iterator()Return an iterator for thenamesmanaged by this source.stream()Returns a sequentialStreamfor thenamesmanaged by this source.Return a variant of this source that supports name aliases.withPrefix(String prefix) Return a variant of this source that supports a prefix.从接口继承的方法 org.springframework.boot.context.properties.source.ConfigurationPropertySource
getConfigurationProperty, getUnderlyingSource从接口继承的方法 java.lang.Iterable
forEach, spliterator
-
方法详细资料
-
iterator
Return an iterator for thenamesmanaged by this source.- 指定者:
iterator在接口中Iterable<ConfigurationPropertyName>- 返回:
- an iterator (never
null)
-
stream
Stream<ConfigurationPropertyName> stream()Returns a sequentialStreamfor thenamesmanaged by this source.- 返回:
- a stream of names (never
null)
-
containsDescendantOf
从接口复制的说明:ConfigurationPropertySourceReturns if the source contains any descendants of the specified name. May returnConfigurationPropertyState.PRESENTorConfigurationPropertyState.ABSENTif an answer can be determined orConfigurationPropertyState.UNKNOWNif it's not possible to determine a definitive answer.- 指定者:
containsDescendantOf在接口中ConfigurationPropertySource- 参数:
name- the name to check- 返回:
- if the source contains any descendants
-
filter
从接口复制的说明:ConfigurationPropertySourceReturn a filtered variant of this source, containing only names that match the givenPredicate.- 指定者:
filter在接口中ConfigurationPropertySource- 参数:
filter- the filter to match- 返回:
- a filtered
ConfigurationPropertySourceinstance
-
withAliases
从接口复制的说明:ConfigurationPropertySourceReturn a variant of this source that supports name aliases.- 指定者:
withAliases在接口中ConfigurationPropertySource- 参数:
aliases- a function that returns a stream of aliases for any given name- 返回:
- a
ConfigurationPropertySourceinstance supporting name aliases
-
withPrefix
从接口复制的说明:ConfigurationPropertySourceReturn a variant of this source that supports a prefix.- 指定者:
withPrefix在接口中ConfigurationPropertySource- 参数:
prefix- the prefix for properties in the source- 返回:
- a
ConfigurationPropertySourceinstance supporting a prefix
-