baymon
baymon

Reputation: 459

Migrate from lambdaj to Java 8

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?

Upvotes: 0

Views: 325

Answers (0)

Related Questions