Interface PropertySourceIterable
-
- All Superinterfaces:
Iterable<PropertySource<?>>
- All Known Implementing Classes:
MutablePropertySources
public interface PropertySourceIterable extends Iterable<PropertySource<?>>
Holder containing one or morePropertySourceobjects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleancontainsPropertySource(String name)Whether a property source with the given name is contained.Optional<PropertySource<?>>getPropertySource(String name)Find the property source with the given name,Optional.empty()if not found.default Stream<PropertySource<?>>stream()-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
-
-
-
Method Detail
-
stream
default Stream<PropertySource<?>> stream()
-
containsPropertySource
boolean containsPropertySource(String name)
Whether a property source with the given name is contained.- Parameters:
name- thename of the property sourceto find
-
getPropertySource
Optional<PropertySource<?>> getPropertySource(String name)
Find the property source with the given name,Optional.empty()if not found.- Parameters:
name- the name of the property source to find
-
-