接口 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 ConfigurationPropertyState
Returns 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 thenames
managed by this source.stream()
Returns a sequentialStream
for thenames
managed 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 thenames
managed by this source.- 指定者:
iterator
在接口中Iterable<ConfigurationPropertyName>
- 返回:
- an iterator (never
null
)
-
stream
Stream<ConfigurationPropertyName> stream()Returns a sequentialStream
for thenames
managed by this source.- 返回:
- a stream of names (never
null
)
-
containsDescendantOf
从接口复制的说明:ConfigurationPropertySource
Returns if the source contains any descendants of the specified name. May returnConfigurationPropertyState.PRESENT
orConfigurationPropertyState.ABSENT
if an answer can be determined orConfigurationPropertyState.UNKNOWN
if it's not possible to determine a definitive answer.- 指定者:
containsDescendantOf
在接口中ConfigurationPropertySource
- 参数:
name
- the name to check- 返回:
- if the source contains any descendants
-
filter
从接口复制的说明:ConfigurationPropertySource
Return a filtered variant of this source, containing only names that match the givenPredicate
.- 指定者:
filter
在接口中ConfigurationPropertySource
- 参数:
filter
- the filter to match- 返回:
- a filtered
ConfigurationPropertySource
instance
-
withAliases
从接口复制的说明:ConfigurationPropertySource
Return 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
ConfigurationPropertySource
instance supporting name aliases
-
withPrefix
从接口复制的说明:ConfigurationPropertySource
Return a variant of this source that supports a prefix.- 指定者:
withPrefix
在接口中ConfigurationPropertySource
- 参数:
prefix
- the prefix for properties in the source- 返回:
- a
ConfigurationPropertySource
instance supporting a prefix
-