Udostępnij za pośrednictwem


BinaryOperator.MinBy(IComparator) Method

Definition

Caution

Use 'Java.Util.Functions.IBinaryOperator.MinBy'. This class will be removed in a future release.

Returns a BinaryOperator which returns the lesser of two elements according to the specified Comparator.

[Android.Runtime.Register("minBy", "(Ljava/util/Comparator;)Ljava/util/function/BinaryOperator;", "", ApiSince=24)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
[System.Obsolete("Use 'Java.Util.Functions.IBinaryOperator.MinBy'. This class will be removed in a future release.")]
public static Java.Util.Functions.IBinaryOperator? MinBy (Java.Util.IComparator? comparator);
[<Android.Runtime.Register("minBy", "(Ljava/util/Comparator;)Ljava/util/function/BinaryOperator;", "", ApiSince=24)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
[<System.Obsolete("Use 'Java.Util.Functions.IBinaryOperator.MinBy'. This class will be removed in a future release.")>]
static member MinBy : Java.Util.IComparator -> Java.Util.Functions.IBinaryOperator

Parameters

comparator
IComparator

a Comparator for comparing the two values

Returns

a BinaryOperator which returns the lesser of its operands, according to the supplied Comparator

Attributes

Remarks

Returns a BinaryOperator which returns the lesser of two elements according to the specified Comparator.

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