Udostępnij za pośrednictwem


Collections.UnmodifiableNavigableSet(INavigableSet) Method

Definition

Returns an unmodifiable view of the specified navigable set.

[Android.Runtime.Register("unmodifiableNavigableSet", "(Ljava/util/NavigableSet;)Ljava/util/NavigableSet;", "", ApiSince=26)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public static Java.Util.INavigableSet UnmodifiableNavigableSet (Java.Util.INavigableSet s);
[<Android.Runtime.Register("unmodifiableNavigableSet", "(Ljava/util/NavigableSet;)Ljava/util/NavigableSet;", "", ApiSince=26)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
static member UnmodifiableNavigableSet : Java.Util.INavigableSet -> Java.Util.INavigableSet

Parameters

s
INavigableSet

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

Returns

an unmodifiable view of the specified navigable set

Attributes

Remarks

Returns an unmodifiable view of the specified navigable set. Query operations on the returned navigable set "read through" to the specified navigable set. Attempts to modify the returned navigable set, whether direct, via its iterator, or via its subSet, headSet, or tailSet views, result in an UnsupportedOperationException.

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

Added in 1.8.

Java documentation for java.util.Collections.unmodifiableNavigableSet(java.util.NavigableSet<T>).

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