An example of onClickListener() without lambda:
mButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
// do something here
}
});
can be rewritten with lambda:
mButton.setOnClickListener((View v) -> {
// do something here
});
So your code is using Lambda expression (Java 8 feature)