Package java.util
Class Collections
static Set unmodifiableSet(Set s)
_INSERT_METHOD_SIGNATURE_HERE_
Description:
Returns an unmodifiable view of the specified set. This method allows modules to provide users with "read-only" access to internal sets. Query operations on the returned set "read through" to the specified set, and attempts to modify the returned set, whether direct or via its iterator, result in an UnsupportedOperationException.
The returned set will be serializable if the specified set is serializable.