There is the following code
Grid.Column<Person> firstNameColumn = grid.addColumn(Person::getFirstName).setHeader("First Name");
Grid.Column<Person> lastNameColumn = grid.addColumn(Person::getLastName).setHeader("Last Name");
I would like to rewrite it without ::
. The reason is that I need to use a function like getLastName
to have two parameters like getLastName(firstname, age)
.
Can you provide me a solution or how to search about it?
Thank you