Returns an unmodifiable view of the specified sorted map. This method allows modules to provide users with "read-only" access to internal sorted maps. Query operations on the returned sorted map "read through" to the specified sorted map. Attempts to modify the returned sorted map, whether direct, via its collection views, or via its subMap, headMap, or tailMap views, result in an UnsupportedOperationException.
The returned sorted map will be serializable if the specified sorted map is serializable.
<K> | the class of the map keys | |
<V> | the class of the map values | |
m | the sorted map for which an unmodifiable view is to be returned. |
Diagram: Collections