This how java8-lambdas can be used interchangeably with implementing the interface.