次の方法で共有


IComparator.ThenComparingLong(IToLongFunction) Method

Definition

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

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

Parameters

keyExtractor
IToLongFunction

the function used to extract the long sort key

Returns

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

Attributes

Remarks

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

Added in 1.8.

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