public class PathSet extends Object
| Constructor and Description |
|---|
PathSet()
Create a path set.
|
PathSet(String... includes)
Create a path set with initial Ant-style globs for the include patterns.
|
| Modifier and Type | Method and Description |
|---|---|
PathSet |
exclude(String... excludes)
Add Ant-style globs to the exclude patterns.
|
PathSet |
excludes(List<String> excludes)
Add Ant-style globs to the exclude patterns.
|
PathSet |
include(String... includes)
Add Ant-style globs to the include patterns.
|
PathSet |
includes(List<String> includes)
Add Ant-style globs to the include patterns.
|
Predicate<String> |
matches()
Return a predicate matching the configured include and exclude Ant-style
glob expressions.
|
Predicate<String> |
matches(List<String> defaultIncludes)
Return a predicate matching the configured include and exclude Ant-style
glob expressions.
|
Predicate<String> |
matches(String... defaultIncludes)
Return a predicate matching the configured include and exclude Ant-style
glob expressions.
|
List<String> |
paths(Collection<String> paths)
Return a list of paths in the specified collection matching the
configured include and exclude Ant-style glob expressions.
|
List<String> |
paths(Collection<String> paths,
List<String> defaultIncludes)
Return a list of paths in the specified collection matching the
configured include and exclude Ant-style glob expressions.
|
List<String> |
paths(Collection<String> paths,
String... defaultIncludes)
Return a list of paths in the specified collection matching the
configured include and exclude Ant-style glob expressions.
|
public PathSet()
public PathSet(String... includes)
includes - Add Ant-style globs.public PathSet includes(List<String> includes)
includes - Add Ant-style globs.public PathSet include(String... includes)
includes - Add Ant-style globs.public PathSet exclude(String... excludes)
excludes - Add Ant-style globs.public PathSet excludes(List<String> excludes)
excludes - Add Ant-style globs.public List<String> paths(Collection<String> paths, String... defaultIncludes)
defaultIncludes - The default include patterns to use if no include
patterns were configured.public List<String> paths(Collection<String> paths, List<String> defaultIncludes)
defaultIncludes - The default include patterns to use if no include
patterns were configured.public List<String> paths(Collection<String> paths)
public Predicate<String> matches(String... defaultIncludes)
defaultIncludes - The default include patterns to use if no include
patterns were configured.public Predicate<String> matches(List<String> defaultIncludes)
defaultIncludes - The default include patterns to use if no include
patterns were configured.Copyright © 2021. All rights reserved.