I have edited my example to show a more practical example of what I'm trying to achieve. I would like to understand what I should specify as the second type when instantiating the new TableCell object within the Lambda expression, given the types being passed into the method.
Thanks in advance for any help.
void setTableCellStuff (TableColumn <Object, ?> tableCell) {
tableCell.setCellFactory(arg0 ->
new TableCell <Object, ?> () // cannot use ? in instantiator.
);
}