Package com.linecorp.centraldogma.common
Interface PathPattern
public interface PathPattern
A path pattern that represents a variant of glob. For example:
"/**"
- all files"*.json"
- all JSON files"/foo/*.json"
- all JSON files under the directory/foo
"/*/foo.txt"
- all files namedfoo.txt
at the second depth level"*.json","/bar/*.txt"
- if you have more than one pattern you can supply them asvarargs
orIterable
. A file will be matched if any pattern matches.
-
Method Summary
Modifier and TypeMethodDescriptionstatic PathPattern
all()
Returns the path pattern that represents all files.encoded()
Returns the encodedpatternString()
which just encodes a space to '%20'.static PathPattern
Creates a path pattern with thepatterns
.static PathPattern
Creates a path pattern with thepatterns
.Returns the path pattern that concatenates thepatterns
using ','.
-
Method Details
-
all
Returns the path pattern that represents all files. -
of
Creates a path pattern with thepatterns
. -
of
Creates a path pattern with thepatterns
. -
patternString
String patternString()Returns the path pattern that concatenates thepatterns
using ','. -
encoded
String encoded()Returns the encodedpatternString()
which just encodes a space to '%20'.
-