共用方式為


IComparator.ThenComparingInt(IToIntFunction) Method

Definition

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

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

Parameters

keyExtractor
IToIntFunction

the function used to extract the integer sort key

Returns

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

Attributes

Remarks

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

Added in 1.8.

Java documentation for java.util.Comparator.thenComparingInt(java.util.function.ToIntFunction<? 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