ICollector.Of 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.
Overloads
Of(ISupplier, IBiConsumer, IBinaryOperator, CollectorCharacteristics[]) |
Returns a new |
Of(ISupplier, IBiConsumer, IBinaryOperator, IFunction, CollectorCharacteristics[]) |
Returns a new |
Of(ISupplier, IBiConsumer, IBinaryOperator, CollectorCharacteristics[])
Returns a new Collector
described by the given supplier
,
accumulator
, combiner
, and finisher
functions.
[Android.Runtime.Register("of", "(Ljava/util/function/Supplier;Ljava/util/function/BiConsumer;Ljava/util/function/BinaryOperator;[Ljava/util/stream/Collector$Characteristics;)Ljava/util/stream/Collector;", "", ApiSince=24)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T", "R" })]
public static Java.Util.Streams.ICollector? Of (Java.Util.Functions.ISupplier? supplier, Java.Util.Functions.IBiConsumer? accumulator, Java.Util.Functions.IBinaryOperator? combiner, params Java.Util.Streams.CollectorCharacteristics[]? characteristics);
[<Android.Runtime.Register("of", "(Ljava/util/function/Supplier;Ljava/util/function/BiConsumer;Ljava/util/function/BinaryOperator;[Ljava/util/stream/Collector$Characteristics;)Ljava/util/stream/Collector;", "", ApiSince=24)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T", "R" })>]
static member Of : Java.Util.Functions.ISupplier * Java.Util.Functions.IBiConsumer * Java.Util.Functions.IBinaryOperator * Java.Util.Streams.CollectorCharacteristics[] -> Java.Util.Streams.ICollector
Parameters
- supplier
- ISupplier
The supplier function for the new collector
- accumulator
- IBiConsumer
The accumulator function for the new collector
- combiner
- IBinaryOperator
The combiner function for the new collector
- characteristics
- CollectorCharacteristics[]
The collector characteristics for the new collector
Returns
the new Collector
- Attributes
Remarks
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
Of(ISupplier, IBiConsumer, IBinaryOperator, IFunction, CollectorCharacteristics[])
Returns a new Collector
described by the given supplier
,
accumulator
, combiner
, and finisher
functions.
[Android.Runtime.Register("of", "(Ljava/util/function/Supplier;Ljava/util/function/BiConsumer;Ljava/util/function/BinaryOperator;Ljava/util/function/Function;[Ljava/util/stream/Collector$Characteristics;)Ljava/util/stream/Collector;", "", ApiSince=24)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T", "A", "R" })]
public static Java.Util.Streams.ICollector? Of (Java.Util.Functions.ISupplier? supplier, Java.Util.Functions.IBiConsumer? accumulator, Java.Util.Functions.IBinaryOperator? combiner, Java.Util.Functions.IFunction? finisher, params Java.Util.Streams.CollectorCharacteristics[]? characteristics);
[<Android.Runtime.Register("of", "(Ljava/util/function/Supplier;Ljava/util/function/BiConsumer;Ljava/util/function/BinaryOperator;Ljava/util/function/Function;[Ljava/util/stream/Collector$Characteristics;)Ljava/util/stream/Collector;", "", ApiSince=24)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T", "A", "R" })>]
static member Of : Java.Util.Functions.ISupplier * Java.Util.Functions.IBiConsumer * Java.Util.Functions.IBinaryOperator * Java.Util.Functions.IFunction * Java.Util.Streams.CollectorCharacteristics[] -> Java.Util.Streams.ICollector
Parameters
- supplier
- ISupplier
The supplier function for the new collector
- accumulator
- IBiConsumer
The accumulator function for the new collector
- combiner
- IBinaryOperator
The combiner function for the new collector
- finisher
- IFunction
The finisher function for the new collector
- characteristics
- CollectorCharacteristics[]
The collector characteristics for the new collector
Returns
the new Collector
- Attributes
Remarks
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.