Encapsulate Collection

A method returns a collection.

Make it return a read-only view and provide add/remove methods.

For more information see page 208 of Refactoring

| Refactoring Home | | Alphabetical List |