We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In e.g. google guava there is a lot of boiler plate involved when using guavas functional features with std. java member functions
class Person { ... public String getName() { return name; } public boolean nonSmoker() { return nonSmoker; } public static final Function<String, Person> GET_NAME = new Function<String, Person>() { public String apply(Person p) { return p.getName(); } } public static final Predicate<Person> NON_SMOKER = new Predicate<Person>() { public boolean apply(Person p) { return p.nonSmoker(); } } } String personName = fromNullable(myPerson).transform(GET_NAME).or(""); Collection<String> nonSmokerNames = from(personList).filter(NON_SMOKER).transform(GET_NAME).toImmutableList();
Any chance of getting lombok-pg to generate this via something like this:
class Person { @FunctionFor public String getName() { return name; } @PredicateFor public boolean nonSmoker() { return nonSmoker; } }
? Funcito does something like this but it is still nosiy.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In e.g. google guava there is a lot of boiler plate involved when using guavas functional features with std. java member functions
Any chance of getting lombok-pg to generate this via something like this:
?
Funcito does something like this but it is still nosiy.
The text was updated successfully, but these errors were encountered: