Coordinate extends PackageURLFacade { public boolean matches(String packageUrlString) { return matches(new Coordinate(packageUrlString)); } Coordinate(PackageURL packageURL);  Coordinate(String packageURLString);  Coordinate(String name, String version);  Coordinate(String type, String namespace, String name, String version);  Coordinate(String type, String name, String version);  Coordinate(String type, String namespace, String name, String version, TreeMap<String, String> qualifiers, String subpath); static CoordinateBuilder builder(); boolean matches(String packageUrlString); boolean matches(Coordinate coordinate);  }
@Test public void matchesTestFromString() { String purlString = "pkg:maven/test.groupId/artifactId@1.0.0"; String purlWildcardString = "pkg:maven/test.*/artifactId@1.0.0"; Coordinate coordinate = new Coordinate(purlString); Coordinate coordinateWildcard = new Coordinate(purlWildcardString); assertThat(coordinateWildcard.matches(coordinate)) .isTrue(); assertThat(coordinate.matches(coordinateWildcard)) .isFalse(); }