code: public static PathMappingResult of(String path, @Nullable String query,
                                         Map<String, String> rawPathParams, int score) {
          requireNonNull(path, "path");
          requireNonNull(rawPathParams, "rawPathParams");
          return new PathMappingResult(path, query, rawPathParams, score);
      }
docs: Creates a new instance with the specified {@code path}, {@code query}, the extracted path parameters
  and the score.