calling java8 functions from scala