O'Reilly logo
  • Christer Blomqvist thinks this is interesting:

Stream<Book> techBooks =
 library.getBooks().parallelStream().filter(Book.Genre.TECHNICAL::equals);

From

Cover of Java Closures and Lambda

Note

This does NOT work! There are Books in the stream and they can NEVER be equal to a Book.Genre.