public static <K, V> Map<K, V> unmodifiableMap (Map<? extends K, ? extends V> m)

Returns an unmodifiable view of the specified map. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.

The returned map will be serializable if the specified map is serializable.

Parameters:
<K>    the class of the map keys
<V>    the class of the map values
m    the map for which an unmodifiable view is to be returned.

Returns:  an unmodifiable view of the specified map.