Scala functions from Java 8