接口 PropertySources
- 所有超级接口:
Iterable<PropertySource<?>>
- 所有已知实现类:
MutablePropertySources
public interface PropertySources extends Iterable<PropertySource<?>>
Holder containing one or morePropertySourceobjects.- 从以下版本开始:
- 3.1
- 作者:
- Chris Beams, Juergen Hoeller
- 另请参阅:
PropertySource
方法概要
所有方法 实例方法 抽象方法 默认方法 修饰符和类型 方法 说明 booleancontains(String name)Return whether a property source with the given name is contained.PropertySource<?>get(String name)Return the property source with the given name,nullif not found.default Stream<PropertySource<?>>stream()Return a sequentialStreamcontaining the property sources.从接口继承的方法 java.lang.Iterable
forEach, iterator, spliterator
方法详细资料
stream
default Stream<PropertySource<?>> stream()
Return a sequentialStreamcontaining the property sources.- 从以下版本开始:
- 5.1
contains
boolean contains(String name)
Return whether a property source with the given name is contained.- 参数:
name- the name of the property source to find
get
@Nullable PropertySource<?> get(String name)
Return the property source with the given name,nullif not found.- 参数:
name- the name of the property source to find