Aracılığıyla paylaş


Collections.UnmodifiableNavigableMap(INavigableMap) Method

Definition

Returns an unmodifiable view of the specified navigable map.

[Android.Runtime.Register("unmodifiableNavigableMap", "(Ljava/util/NavigableMap;)Ljava/util/NavigableMap;", "", ApiSince=26)]
[Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })]
public static Java.Util.INavigableMap UnmodifiableNavigableMap (Java.Util.INavigableMap m);
[<Android.Runtime.Register("unmodifiableNavigableMap", "(Ljava/util/NavigableMap;)Ljava/util/NavigableMap;", "", ApiSince=26)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })>]
static member UnmodifiableNavigableMap : Java.Util.INavigableMap -> Java.Util.INavigableMap

Parameters

m
INavigableMap

the navigable map for which an unmodifiable view is to be returned

Returns

an unmodifiable view of the specified navigable map

Attributes

Remarks

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

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

Added in 1.8.

Java documentation for java.util.Collections.unmodifiableNavigableMap(java.util.NavigableMap<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