IBinaryOperator.MaxBy(IComparator) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a BinaryOperator
which returns the greater of two elements
according to the specified Comparator
.
[Android.Runtime.Register("maxBy", "(Ljava/util/Comparator;)Ljava/util/function/BinaryOperator;", "", ApiSince=24)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public static Java.Util.Functions.IBinaryOperator? MaxBy (Java.Util.IComparator? comparator);
[<Android.Runtime.Register("maxBy", "(Ljava/util/Comparator;)Ljava/util/function/BinaryOperator;", "", ApiSince=24)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
static member MaxBy : Java.Util.IComparator -> Java.Util.Functions.IBinaryOperator
Parameters
- comparator
- IComparator
a Comparator
for comparing the two values
Returns
a BinaryOperator
which returns the greater of its operands,
according to the supplied Comparator
- Attributes
Remarks
Returns a BinaryOperator
which returns the greater of two elements according to the specified Comparator
.
Java documentation for java.util.function.BinaryOperator.maxBy(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.