Udostępnij za pośrednictwem


Collections.UnmodifiableSortedMap(IDictionary) Method

Definition

Returns an unmodifiable view of the specified sorted map.

[Android.Runtime.Register("unmodifiableSortedMap", "(Ljava/util/SortedMap;)Ljava/util/SortedMap;", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })]
public static System.Collections.IDictionary UnmodifiableSortedMap (System.Collections.IDictionary m);
[<Android.Runtime.Register("unmodifiableSortedMap", "(Ljava/util/SortedMap;)Ljava/util/SortedMap;", "")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })>]
static member UnmodifiableSortedMap : System.Collections.IDictionary -> System.Collections.IDictionary

Parameters

m
IDictionary

the sorted map for which an unmodifiable view is to be returned.

Returns

an unmodifiable view of the specified sorted map.

Attributes

Remarks

Returns an unmodifiable view of the specified sorted map. 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.

Java documentation for java.util.Collections.unmodifiableSortedMap(java.util.SortedMap<K, ? extends V>).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to