Replies a serializable collection. If the wrapped collection is serializable, it is replied itself without wrapping. If the wrapped collection is not serializable, it is wrapped into a collection that supports serialization of the collection elements.
Parameters:
<T> - - type of the elements in the collection.
elements - the set to transform as unmodifiable collection.