Returns an unmodifiable view of the
specified sorted set. Query operations on the returned sorted set "read
through" to the specified sorted set. Attempts to modify the returned
sorted set, whether direct, via its iterator, or via its
subSet
, headSet
, or tailSet
views, result in
an UnsupportedOperationException
.
The returned sorted set will be serializable if the specified sorted set is serializable.
<T> | the class of the objects in the set | |
s | the sorted set for which an unmodifiable view is to be returned. |
Diagram: Collections