Partager via


Map.Entry(Object, Object) Method

Definition

Caution

Use 'Java.Util.IMap.Entry'. This class will be removed in a future release.

Returns an immutable Entry containing the given key and value.

[Android.Runtime.Register("entry", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map$Entry;", "", ApiSince=30)]
[Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })]
[System.Obsolete("Use 'Java.Util.IMap.Entry'. This class will be removed in a future release.")]
public static Java.Util.IMapEntry Entry (Java.Lang.Object k, Java.Lang.Object v);
[<Android.Runtime.Register("entry", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map$Entry;", "", ApiSince=30)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })>]
[<System.Obsolete("Use 'Java.Util.IMap.Entry'. This class will be removed in a future release.")>]
static member Entry : Java.Lang.Object * Java.Lang.Object -> Java.Util.IMapEntry

Parameters

k
Object

the key

v
Object

the value

Returns

an Entry containing the specified key and value

Attributes

Remarks

Java documentation for java.util.Map.entry(java.lang.Object, java.lang.Object).

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