reckart / tt4j

TreeTagger for Java
http://reckart.github.io/tt4j/
Apache License 2.0
16 stars 7 forks source link

Replace AIC with lambda expression in code example #22

Closed elvisangelaccio closed 9 years ago

elvisangelaccio commented 9 years ago

The code example in the index page can be simplified by replacing the AIC-handler with an equivalent but less verbose Java 8 lambda expression.

reckart commented 9 years ago

Looks nice. Does it actually work like this out of the box or did you have to make any modifications to the TokenHandler interface or any other part of the code? I'm not very familiar with the Java 8 additions yet, but very curious.

elvisangelaccio commented 9 years ago

Yes, it works out of the box.