Class IncludeExcludeContentSelector<T>
java.lang.Object
org.springframework.boot.loader.tools.layer.IncludeExcludeContentSelector<T>
- Type Parameters:
T
- the content type
- All Implemented Interfaces:
ContentSelector<T>
- Since:
- 2.3.0
- Author:
- Madhura Bhave, Phillip Webb
-
Constructor Summary
ConstructorDescriptionIncludeExcludeContentSelector
(Layer layer, List<ContentFilter<T>> includes, List<ContentFilter<T>> excludes) IncludeExcludeContentSelector
(Layer layer, List<S> includes, List<S> excludes, Function<S, ContentFilter<T>> filterFactory) -
Method Summary
-
Constructor Details
-
IncludeExcludeContentSelector
public IncludeExcludeContentSelector(Layer layer, List<ContentFilter<T>> includes, List<ContentFilter<T>> excludes) -
IncludeExcludeContentSelector
-
-
Method Details
-
getLayer
Description copied from interface:ContentSelector
Return theLayer
that the selector represents.- Specified by:
getLayer
in interfaceContentSelector<T>
- Returns:
- the named layer
-
contains
Description copied from interface:ContentSelector
Returnstrue
if the specified item is contained in this selection.- Specified by:
contains
in interfaceContentSelector<T>
- Parameters:
item
- the item to test- Returns:
- if the item is contained
-