Package aQute.libg.glob
Class PathSet
- java.lang.Object
-
- aQute.libg.glob.PathSet
-
public class PathSet extends java.lang.ObjectA reusable path set using Ant-style include and exclude globs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PathSetexclude(java.lang.String... excludes)Add Ant-style globs to the exclude patterns.PathSetexcludes(java.util.List<java.lang.String> excludes)Add Ant-style globs to the exclude patterns.java.util.function.Predicate<java.lang.String>find()Return a predicate finding the configured include and exclude Ant-style glob expressions.java.util.function.Predicate<java.lang.String>find(java.lang.String... defaultIncludes)Return a predicate finding the configured include and exclude Ant-style glob expressions.java.util.function.Predicate<java.lang.String>find(java.util.List<java.lang.String> defaultIncludes)Return a predicate finding the configured include and exclude Ant-style glob expressions.PathSetinclude(java.lang.String... includes)Add Ant-style globs to the include patterns.PathSetincludes(java.util.List<java.lang.String> includes)Add Ant-style globs to the include patterns.java.util.function.Predicate<java.lang.String>matches()Return a predicate matching the configured include and exclude Ant-style glob expressions.java.util.function.Predicate<java.lang.String>matches(java.lang.String... defaultIncludes)Return a predicate matching the configured include and exclude Ant-style glob expressions.java.util.function.Predicate<java.lang.String>matches(java.util.List<java.lang.String> defaultIncludes)Return a predicate matching the configured include and exclude Ant-style glob expressions.java.util.List<java.lang.String>paths(java.util.Collection<java.lang.String> paths)Return a list of paths in the specified collection matching the configured include and exclude Ant-style glob expressions.java.util.List<java.lang.String>paths(java.util.Collection<java.lang.String> paths, java.lang.String... defaultIncludes)Return a list of paths in the specified collection matching the configured include and exclude Ant-style glob expressions.java.util.List<java.lang.String>paths(java.util.Collection<java.lang.String> paths, java.util.List<java.lang.String> defaultIncludes)Return a list of paths in the specified collection matching the configured include and exclude Ant-style glob expressions.java.lang.StringtoString()
-
-
-
Method Detail
-
includes
public PathSet includes(java.util.List<java.lang.String> includes)
Add Ant-style globs to the include patterns.- Parameters:
includes- Add Ant-style globs.- Returns:
- This PathSet.
-
include
public PathSet include(java.lang.String... includes)
Add Ant-style globs to the include patterns.- Parameters:
includes- Add Ant-style globs.- Returns:
- This PathSet.
-
exclude
public PathSet exclude(java.lang.String... excludes)
Add Ant-style globs to the exclude patterns.- Parameters:
excludes- Add Ant-style globs.- Returns:
- This PathSet.
-
excludes
public PathSet excludes(java.util.List<java.lang.String> excludes)
Add Ant-style globs to the exclude patterns.- Parameters:
excludes- Add Ant-style globs.- Returns:
- This PathSet.
-
paths
public java.util.List<java.lang.String> paths(java.util.Collection<java.lang.String> paths, java.lang.String... defaultIncludes)Return a list of paths in the specified collection matching the configured include and exclude Ant-style glob expressions.- Parameters:
defaultIncludes- The default include patterns to use if no include patterns were configured.- Returns:
- A list of paths in the specified collection which match the include and exclude Ant-style globs.
-
paths
public java.util.List<java.lang.String> paths(java.util.Collection<java.lang.String> paths, java.util.List<java.lang.String> defaultIncludes)Return a list of paths in the specified collection matching the configured include and exclude Ant-style glob expressions.- Parameters:
defaultIncludes- The default include patterns to use if no include patterns were configured.- Returns:
- A list of paths in the specified collection which match the include and exclude Ant-style globs.
-
paths
public java.util.List<java.lang.String> paths(java.util.Collection<java.lang.String> paths)
Return a list of paths in the specified collection matching the configured include and exclude Ant-style glob expressions.- Returns:
- A list of paths in the specified collection which match the include and exclude Ant-style globs.
-
matches
public java.util.function.Predicate<java.lang.String> matches(java.lang.String... defaultIncludes)
Return a predicate matching the configured include and exclude Ant-style glob expressions.- Parameters:
defaultIncludes- The default include patterns to use if no include patterns were configured.- Returns:
- A predicate which matches the include and exclude Ant-style globs.
-
matches
public java.util.function.Predicate<java.lang.String> matches(java.util.List<java.lang.String> defaultIncludes)
Return a predicate matching the configured include and exclude Ant-style glob expressions.- Parameters:
defaultIncludes- The default include patterns to use if no include patterns were configured.- Returns:
- A predicate which matches the include and exclude Ant-style globs.
-
matches
public java.util.function.Predicate<java.lang.String> matches()
Return a predicate matching the configured include and exclude Ant-style glob expressions.- Returns:
- A predicate which matches the include and exclude Ant-style globs.
-
find
public java.util.function.Predicate<java.lang.String> find(java.lang.String... defaultIncludes)
Return a predicate finding the configured include and exclude Ant-style glob expressions.- Parameters:
defaultIncludes- The default include patterns to use if no include patterns were configured.- Returns:
- A predicate which finds the include and exclude Ant-style globs.
-
find
public java.util.function.Predicate<java.lang.String> find(java.util.List<java.lang.String> defaultIncludes)
Return a predicate finding the configured include and exclude Ant-style glob expressions.- Parameters:
defaultIncludes- The default include patterns to use if no include patterns were configured.- Returns:
- A predicate which finds the include and exclude Ant-style globs.
-
find
public java.util.function.Predicate<java.lang.String> find()
Return a predicate finding the configured include and exclude Ant-style glob expressions.- Returns:
- A predicate which find the include and exclude Ant-style globs.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-