oxsean commented on code in PR #15445: URL: https://github.com/apache/dubbo/pull/15445#discussion_r2137866723
########## dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/rest/mapping/RadixTree.java: ########## @@ -63,7 +64,18 @@ public RadixTree() { this(true, '/'); } + /** + * This is a default implementation that does not check for equality. + */ public T addPath(PathExpression path, T value) { + return addPath(path, value, (t, t2) -> Boolean.TRUE); + } + + /** + * When equalFunction is not null, if a node is found at the path, it will not be returned immediately; <br/> + * instead, whether to return it depends on the result of the function. + */ + public T addPath(PathExpression path, T value, BiFunction<T, T, Boolean> equalFunction) { Review Comment: equalFunction rename to predicate or overlapChecker -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org For additional commands, e-mail: notifications-h...@dubbo.apache.org