Compartir a través de


IComparator.ThenComparingDouble(IToDoubleFunction) Method

Definition

Returns a lexicographic-order comparator with a function that extracts a double sort key.

[Android.Runtime.Register("thenComparingDouble", "(Ljava/util/function/ToDoubleFunction;)Ljava/util/Comparator;", "GetThenComparingDouble_Ljava_util_function_ToDoubleFunction_Handler:Java.Util.IComparator, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=24)]
public virtual Java.Util.IComparator? ThenComparingDouble (Java.Util.Functions.IToDoubleFunction? keyExtractor);
[<Android.Runtime.Register("thenComparingDouble", "(Ljava/util/function/ToDoubleFunction;)Ljava/util/Comparator;", "GetThenComparingDouble_Ljava_util_function_ToDoubleFunction_Handler:Java.Util.IComparator, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=24)>]
abstract member ThenComparingDouble : Java.Util.Functions.IToDoubleFunction -> Java.Util.IComparator
override this.ThenComparingDouble : Java.Util.Functions.IToDoubleFunction -> Java.Util.IComparator

Parameters

keyExtractor
IToDoubleFunction

the function used to extract the double sort key

Returns

a lexicographic-order comparator composed of this and then the double sort key

Attributes

Remarks

Returns a lexicographic-order comparator with a function that extracts a double sort key.

Added in 1.8.

Java documentation for java.util.Comparator.thenComparingDouble(java.util.function.ToDoubleFunction<? super T>).

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