jOOQ / jOOX

jOOX - The Power of jQuery Applied to W3C DOM Like JDBC, DOM is a powerful, yet very verbose low-level API to manipulate XML. The HTML DOM an be manipulated with the popular jQuery product, in JavaScript. Why don't we have jQuery in Java? jOOX is jQuery's XML parts, applied to Java.
http://www.jooq.org/products
Apache License 2.0
495 stars 43 forks source link

JOOX.$ should add an overload accepting a Path object #165

Closed helpermethod closed 3 years ago

helpermethod commented 5 years ago

Expected behavior and actual behavior:

Most modern Java APIs return objects of type Path or Stream<Path>. Having to convert every Path object to a File using path.toFile() seems tedious and unnecessary.

Because JOOX.$ already has quite a few overloads, another overload accepting a Path object wouldn't hurt.

Steps to reproduce the problem:

Joox.$(Path.of("/home/helpermethod")); // seems to work but selects the wrong overload

Versions:

lukaseder commented 5 years ago

Thank you very much for your suggestion. I agree this could be done