Collections.UnmodifiableNavigableMap(INavigableMap) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.
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.