Class RegexPathMatcher

  • All Implemented Interfaces:
    PathMatcher

    public class RegexPathMatcher
    extends java.lang.Object
    implements PathMatcher
    PathMatcher implementation for regex-style patterns.
    Since:
    3.1
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean matches​(java.lang.String pattern, java.lang.String source)
      Returns true if the given source matches the specified pattern, false otherwise.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RegexPathMatcher

        public RegexPathMatcher()
    • Method Detail

      • matches

        public boolean matches​(java.lang.String pattern,
                               java.lang.String source)
        Description copied from interface: PathMatcher
        Returns true if the given source matches the specified pattern, false otherwise.
        Specified by:
        matches in interface PathMatcher
        Parameters:
        pattern - the pattern to match against
        source - the source to match
        Returns:
        true if the given source matches the specified pattern, false otherwise.