Language

MapEntry.CopyOf(IMapEntry) Method

Definition

Caution

Use 'Java.Util.IMapEntry.CopyOf'. This class will be removed in a future release.

Gets an unmodifiable entry with the supplied entry's key and value, independent of any map.

[Android.Runtime.Register("copyOf", "(Ljava/util/Map$Entry;)Ljava/util/Map$Entry;", "", ApiSince=35)]
[Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })]
[System.Obsolete("Use 'Java.Util.IMapEntry.CopyOf'. This class will be removed in a future release.")]
public static Java.Util.IMapEntry CopyOf(Java.Util.IMapEntry e);
[<Android.Runtime.Register("copyOf", "(Ljava/util/Map$Entry;)Ljava/util/Map$Entry;", "", ApiSince=35)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })>]
[<System.Obsolete("Use 'Java.Util.IMapEntry.CopyOf'. This class will be removed in a future release.")>]
static member CopyOf : Java.Util.IMapEntry -> Java.Util.IMapEntry

Parameters

e
IMapEntry

The non-null entry whose key and value are to be retained; neither can be null.

Returns

An entry equal to e that is not connected to a map.

Attributes

Remarks

This method can reuse an entry previously returned by this method or a map entry factory; it does not always allocate a new entry.

Applies to