vaadin / addressbook

Simple Addressbook example application
91 stars 1.13k forks source link

use Java 8 features in `ContactService.findAll()` #17

Closed ghost closed 7 years ago

ghost commented 8 years ago

Since the project uses Java 8, it is possible to use streams. ContactService.findAll(String stringFilter) can be improved by using streams and filters.

To make Contact.clone() usable in such a stream, I've added a method Contact.safeClone() that does not throw the checked exception CloneNotSupportedException.


This change is Reviewable