Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: withProperty that takes a lambda #45

Open
Rhobal opened this issue Jun 5, 2020 · 0 comments
Open

Feature Request: withProperty that takes a lambda #45

Rhobal opened this issue Jun 5, 2020 · 0 comments

Comments

@Rhobal
Copy link

Rhobal commented Jun 5, 2020

If withProperty could take a lambda (Function<T, S>) to find the property, it would be type safe, have compile time checking and support code assist and refactoring, e.g.

pojo(Product.class).withProperty(Product::getId, is(1))
   .withProperty(Product::getName, is("name"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant