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 Type
    Method
    Description
    default Matcher
    matcher(String input)
    Creates a matcher that will match the given input against this pattern.
    default boolean
    matches(String input)
    Attempts to match the given input against the pattern.
    default boolean
    matches(URL url)
    Attempts to match the given URL external form against the pattern.
    Returns the URL pattern.
  • Method Details

    • pattern

      Returns the URL pattern.
      Returns:
      the URL pattern
    • matcher

      default Matcher matcher(String input)
      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

      default boolean matches(String input)
      Attempts to match the given input against the pattern.
      Parameters:
      input - The character sequence to be matched
      Returns:
      true if the given input matches this pattern
    • matches

      default boolean matches(URL url)
      Attempts to match the given URL external form against the pattern.
      Parameters:
      url - URL to be matched
      Returns:
      true if the given URL matches this pattern