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.
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 methodContact.safeClone()
that does not throw the checked exceptionCloneNotSupportedException
.This change is