接口 IterableConfigurationPropertySource
- 所有已知实现类:
MapConfigurationPropertySource
public interface IterableConfigurationPropertySource extends ConfigurationPropertySource, Iterable<ConfigurationPropertyName>
AConfigurationPropertySource
with a fullyIterable
set of entries. Implementations of this interface must be able to iterate over all contained configuration properties. Anynon-null
result fromConfigurationPropertySource.getConfigurationProperty(ConfigurationPropertyName)
must also have an equivalent entry in theiterator
.
方法概要
所有方法 实例方法 抽象方法 默认方法 修饰符和类型 方法 说明 default ConfigurationPropertyState
containsDescendantOf(ConfigurationPropertyName name)
Returns if the source contains any descendants of the specified name.default IterableConfigurationPropertySource
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<ConfigurationPropertyName>
stream()
Returns a sequentialStream
for thenames
managed by this source.default IterableConfigurationPropertySource
withAliases(ConfigurationPropertyNameAliases aliases)
Return a variant of this source that supports name aliases.从接口继承的方法 org.springframework.boot.context.properties.source.ConfigurationPropertySource
getConfigurationProperty, getUnderlyingSource
从接口继承的方法 java.lang.Iterable
forEach, spliterator
方法详细资料
iterator
default Iterator<ConfigurationPropertyName> 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
default ConfigurationPropertyState containsDescendantOf(ConfigurationPropertyName name)
从接口复制的说明: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
default IterableConfigurationPropertySource filter(Predicate<ConfigurationPropertyName> 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
default IterableConfigurationPropertySource withAliases(ConfigurationPropertyNameAliases aliases)
从接口复制的说明: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