I have implemented an AlertDialog with normal negative and positive button click listeners.
AlertDialog
When I called new DialogInterface.OnClickListener()>
new DialogInterface.OnClickListener()>
To replace the classic new DialogInterface.OnClickListener() implementation with lambda expression is enough with the following
builder.setPositiveButton("resourceId", ((DialogInterface dialog, int which) -> { // do something here }));
It´s just taking the onClick event parameters.