Migrate from lambdaj to Java 8

317 Views Asked by At

With lambdaj I can do something like this to get the name of a property in a refactoring-safe way.

import static ch.lambdaj.Lambda.on;
import static ch.lambdaj.function.argument.ArgumentsFactory.actualArgument;

...

actualArgument(on(User.class).getUsername()).getInkvokedPropertyName();

How can I do that in Java 8 without lambdaj?

0

There are 0 best solutions below