Interface IterableConfigurationPropertySource
- All Superinterfaces:
- ConfigurationPropertySource,- Iterable<ConfigurationPropertyName>
- All Known Implementing Classes:
- 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.- Since:
- 2.0.0
- Author:
- Phillip Webb, Madhura Bhave
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptiondefault 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.Methods inherited from interface org.springframework.boot.context.properties.source.ConfigurationPropertySourcegetConfigurationProperty, getUnderlyingSourceMethods inherited from interface java.lang.IterableforEach, spliterator
- 
Method Details- 
iteratorReturn an iterator for thenamesmanaged by this source.- Specified by:
- iteratorin interface- Iterable<ConfigurationPropertyName>
- Returns:
- an iterator (never null)
 
- 
streamStream<ConfigurationPropertyName> stream()Returns a sequentialStreamfor thenamesmanaged by this source.- Returns:
- a stream of names (never null)
 
- 
containsDescendantOfDescription copied from interface: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.- Specified by:
- containsDescendantOfin interface- ConfigurationPropertySource
- Parameters:
- name- the name to check
- Returns:
- if the source contains any descendants
 
- 
filterDescription copied from interface:ConfigurationPropertySourceReturn a filtered variant of this source, containing only names that match the givenPredicate.- Specified by:
- filterin interface- ConfigurationPropertySource
- Parameters:
- filter- the filter to match
- Returns:
- a filtered ConfigurationPropertySourceinstance
 
- 
withAliasesDescription copied from interface:ConfigurationPropertySourceReturn a variant of this source that supports name aliases.- Specified by:
- withAliasesin interface- ConfigurationPropertySource
- Parameters:
- aliases- a function that returns a stream of aliases for any given name
- Returns:
- a ConfigurationPropertySourceinstance supporting name aliases
 
- 
withPrefixDescription copied from interface:ConfigurationPropertySourceReturn a variant of this source that supports a prefix.- Specified by:
- withPrefixin interface- ConfigurationPropertySource
- Parameters:
- prefix- the prefix for properties in the source
- Returns:
- a ConfigurationPropertySourceinstance supporting a prefix
 
 
-