Collections.EmptyNavigableMap Method

Definition

Returns an empty navigable map (immutable).

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

Returns

an empty navigable map

Attributes

Remarks

Returns an empty navigable map (immutable). This map is serializable.

This example illustrates the type-safe way to obtain an empty map:

{@code
                NavigableMap<String, Date> s = Collections.emptyNavigableMap();
            }

Added in 1.8.

Java documentation for java.util.Collections.emptyNavigableMap().

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