Collections.EmptySortedMap 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 empty sorted map (immutable).
[Android.Runtime.Register("emptySortedMap", "()Ljava/util/SortedMap;", "", ApiSince=26)]
[Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })]
public static System.Collections.IDictionary EmptySortedMap ();
[<Android.Runtime.Register("emptySortedMap", "()Ljava/util/SortedMap;", "", ApiSince=26)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })>]
static member EmptySortedMap : unit -> System.Collections.IDictionary
Returns
an empty sorted map
- Attributes
Remarks
Returns an empty sorted map (immutable). This map is serializable.
This example illustrates the type-safe way to obtain an empty map:
{@code
SortedMap<String, Date> s = Collections.emptySortedMap();
}
Added in 1.8.
Java documentation for java.util.Collections.emptySortedMap()
.
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.