Package org.openstreetmap.josm.io
Interface UrlPattern
- All Known Implementing Classes:
UrlPatterns.GeoJsonUrlPattern,UrlPatterns.GpxUrlPattern,UrlPatterns.NoteUrlPattern,UrlPatterns.OsmChangeUrlPattern,UrlPatterns.OsmUrlPattern
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Download URL pattern.
- Since:
- 15784
-
Method Summary
Modifier and TypeMethodDescriptiondefault MatcherCreates a matcher that will match the given input against this pattern.default booleanAttempts to match the given input against the pattern.default booleanAttempts to match the given URL external form against the pattern.pattern()Returns the URL pattern.
-
Method Details
-
pattern
Returns the URL pattern.- Returns:
- the URL pattern
-
matcher
Creates a matcher that will match the given input against this pattern.- Parameters:
input- The character sequence to be matched- Returns:
- A new matcher for this pattern
-
matches
Attempts to match the given input against the pattern.- Parameters:
input- The character sequence to be matched- Returns:
trueif the given input matches this pattern
-
matches
Attempts to match the given URL external form against the pattern.- Parameters:
url- URL to be matched- Returns:
trueif the given URL matches this pattern
-