Class PackagePattern

    • Method Detail

      • parseAll

        public static List<PackagePattern> parseAll​(Collection<String> patternStrings)
        Parses each string of the given collection into a PackagePattern and returns them in a list.
        Parameters:
        patternStrings - The Strings to parse.
        Returns:
        A list of parsed package patterns.
      • parse

        public static PackagePattern parse​(String patternString)
        Parses the given String into a PackagePattern.
        Parameters:
        patternString - The String to parse.
        Returns:
        The parsed package pattern.
      • matches

        public boolean matches​(PackagePattern otherPackagePattern)
        Tests whether the given package pattern is matched by this package pattern instance.
        Parameters:
        otherPackagePattern - The package pattern to match against this pattern.
        Returns:
        Whether the pattern matches this pattern.
        Since:
        0.8.0
      • matches

        public boolean matches​(String packageName)
        Tests whether the given package name is matched by this package pattern instance.
        Parameters:
        packageName - The package name to match against this pattern.
        Returns:
        Whether the name matches this pattern.
      • isStatic

        public boolean isStatic()
        Whether this is a pattern starting with 'static '.
        Returns:
        Whether this is a static pattern.
        Since:
        0.12.0
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object