Collections.UnmodifiableNavigableSet(INavigableSet) 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 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
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.