Condividi tramite


MapEntry.ComparingByKey Metodo

Definizione

Overload

ComparingByKey()
Obsoleti.

Restituisce un comparatore che confronta Map.Entry in ordine naturale sulla chiave.

ComparingByKey(IComparator)
Obsoleti.

Restituisce un comparatore che confronta in Map.Entry base alla chiave utilizzando l'oggetto specificato Comparator.

ComparingByKey()

Attenzione

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

Restituisce un comparatore che confronta Map.Entry in ordine naturale sulla chiave.

[Android.Runtime.Register("comparingByKey", "()Ljava/util/Comparator;", "", ApiSince=24)]
[Java.Interop.JavaTypeParameters(new System.String[] { "K extends java.lang.Comparable<? super K>", "V" })]
[System.Obsolete("Use 'Java.Util.IMapEntry.ComparingByKey'. This class will be removed in a future release.")]
public static Java.Util.IComparator ComparingByKey ();
[<Android.Runtime.Register("comparingByKey", "()Ljava/util/Comparator;", "", ApiSince=24)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "K extends java.lang.Comparable<? super K>", "V" })>]
[<System.Obsolete("Use 'Java.Util.IMapEntry.ComparingByKey'. This class will be removed in a future release.")>]
static member ComparingByKey : unit -> Java.Util.IComparator

Restituisce

un comparatore che confronta Map.Entry in ordine naturale sulla chiave.

Attributi

Commenti

Restituisce un comparatore che confronta Map.Entry in ordine naturale sulla chiave.

Il confronto restituito è serializzabile e genera un'eccezione NullPointerException durante il confronto di una voce con una chiave Null.

Aggiunta nella versione 1.8.

Documentazione java per java.util.Map.Entry.comparingByKey().

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dal progetto Open Source Android e usato in base ai termini descritti nella licenza Creative Commons 2.5 Attribuzione.

Si applica a

ComparingByKey(IComparator)

Attenzione

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

Restituisce un comparatore che confronta in Map.Entry base alla chiave utilizzando l'oggetto specificato Comparator.

[Android.Runtime.Register("comparingByKey", "(Ljava/util/Comparator;)Ljava/util/Comparator;", "", ApiSince=24)]
[Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })]
[System.Obsolete("Use 'Java.Util.IMapEntry.ComparingByKey'. This class will be removed in a future release.")]
public static Java.Util.IComparator ComparingByKey (Java.Util.IComparator cmp);
[<Android.Runtime.Register("comparingByKey", "(Ljava/util/Comparator;)Ljava/util/Comparator;", "", ApiSince=24)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })>]
[<System.Obsolete("Use 'Java.Util.IMapEntry.ComparingByKey'. This class will be removed in a future release.")>]
static member ComparingByKey : Java.Util.IComparator -> Java.Util.IComparator

Parametri

cmp
IComparator

chiave Comparator

Restituisce

un comparatore che confronta Map.Entry in base alla chiave.

Attributi

Commenti

Restituisce un comparatore che confronta in Map.Entry base alla chiave utilizzando l'oggetto specificato Comparator.

Il comparatore restituito è serializzabile se anche il comparatore specificato è serializzabile.

Aggiunta nella versione 1.8.

Documentazione java per java.util.Map.Entry.comparingByKey(java.util.Comparator<? super K>).

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dal progetto Open Source Android e usato in base ai termini descritti nella licenza Creative Commons 2.5 Attribuzione.

Si applica a