Collectors.AveragingInt(IToIntFunction) 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 Collector
that produces the arithmetic mean of an integer-valued
function applied to the input elements.
[Android.Runtime.Register("averagingInt", "(Ljava/util/function/ToIntFunction;)Ljava/util/stream/Collector;", "", ApiSince=24)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public static Java.Util.Streams.ICollector? AveragingInt (Java.Util.Functions.IToIntFunction? mapper);
[<Android.Runtime.Register("averagingInt", "(Ljava/util/function/ToIntFunction;)Ljava/util/stream/Collector;", "", ApiSince=24)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
static member AveragingInt : Java.Util.Functions.IToIntFunction -> Java.Util.Streams.ICollector
Parameters
- mapper
- IToIntFunction
a function extracting the property to be averaged
Returns
a Collector
that produces the arithmetic mean of a
derived property
- Attributes
Remarks
Returns a Collector
that produces the arithmetic mean of an integer-valued function applied to the input elements. If no elements are present, the result is 0.
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.