-
Notifications
You must be signed in to change notification settings - Fork 0
/
ICollector.xml
508 lines (507 loc) · 37.1 KB
/
ICollector.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
<Type Name="ICollector" FullName="Java.Util.Streams.ICollector">
<TypeSignature Language="C#" Value="public interface ICollector : Android.Runtime.IJavaObject, IDisposable, Java.Interop.IJavaPeerable" />
<TypeSignature Language="ILAsm" Value=".class public interface auto ansi abstract beforefieldinit ICollector implements class Android.Runtime.IJavaObject, class Java.Interop.IJavaPeerable, class System.IDisposable" />
<TypeSignature Language="DocId" Value="T:Java.Util.Streams.ICollector" />
<TypeSignature Language="F#" Value="type ICollector = interface
 interface IJavaObject
 interface IDisposable
 interface IJavaPeerable" />
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Interfaces>
<Interface>
<InterfaceName>Android.Runtime.IJavaObject</InterfaceName>
</Interface>
<Interface>
<InterfaceName>Java.Interop.IJavaPeerable</InterfaceName>
</Interface>
<Interface>
<InterfaceName>System.IDisposable</InterfaceName>
</Interface>
</Interfaces>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("java/util/stream/Collector", "", "Java.Util.Streams.ICollectorInvoker", ApiSince=24)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("java/util/stream/Collector", "", "Java.Util.Streams.ICollectorInvoker", ApiSince=24)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[Java.Interop.JavaTypeParameters(new System.String[] { "T", "A", "R" })]</AttributeName>
<AttributeName Language="F#">[<Java.Interop.JavaTypeParameters(new System.String[] { "T", "A", "R" })>]</AttributeName>
</Attribute>
</Attributes>
<Docs>
<param name="<T><T>">the type of input elements to the reduction operation</param>
<param name="<A><A>">the mutable accumulation type of the reduction operation (often
hidden as an implementation detail)</param>
<param name="<R><R>">the result type of the reduction operation</param>
<summary>A mutable reduction operation that
accumulates input elements into a mutable result container, optionally transforming
the accumulated result into a final representation after all input elements
have been processed.</summary>
<remarks>
<para>A mutable reduction operation that
accumulates input elements into a mutable result container, optionally transforming
the accumulated result into a final representation after all input elements
have been processed. Reduction operations can be performed either sequentially
or in parallel.</para>
<para>Examples of mutable reduction operations include:
accumulating elements into a <c>Collection</c>; concatenating
strings using a <c>StringBuilder</c>; computing summary information about
elements such as sum, min, max, or average; computing "pivot table" summaries
such as "maximum valued transaction by seller", etc. The class <c>Collectors</c>
provides implementations of many common mutable reductions.</para>
<para>A <c>Collector</c> is specified by four functions that work together to
accumulate entries into a mutable result container, and optionally perform
a final transform on the result. They are: <ul>
<li>creation of a new result container (<c>#supplier()</c>)</li>
<li>incorporating a new data element into a result container (<c>#accumulator()</c>)</li>
<li>combining two result containers into one (<c>#combiner()</c>)</li>
<li>performing an optional final transform on the container (<c>#finisher()</c>)</li>
</ul></para>
<para>Collectors also have a set of characteristics, such as
<c>Characteristics#CONCURRENT</c>, that provide hints that can be used by a
reduction implementation to provide better performance.</para>
<para>A sequential implementation of a reduction using a collector would
create a single result container using the supplier function, and invoke the
accumulator function once for each input element. A parallel implementation
would partition the input, create a result container for each partition,
accumulate the contents of each partition into a subresult for that partition,
and then use the combiner function to merge the subresults into a combined
result.</para>
<para>To ensure that sequential and parallel executions produce equivalent
results, the collector functions must satisfy an <em>identity</em> and an
associativity constraints.</para>
<para>The identity constraint says that for any partially accumulated result,
combining it with an empty result container must produce an equivalent
result. That is, for a partially accumulated result <c>a</c> that is the
result of any series of accumulator and combiner invocations, <c>a</c> must
be equivalent to <c>combiner.apply(a, supplier.get())</c>.</para>
<para>The associativity constraint says that splitting the computation must
produce an equivalent result. That is, for any input elements <c>t1</c>
and <c>t2</c>, the results <c>r1</c> and <c>r2</c> in the computation
below must be equivalent:</para>
<code lang="text/java">{@code
A a1 = supplier.get();
accumulator.accept(a1, t1);
accumulator.accept(a1, t2);
R r1 = finisher.apply(a1); // result without splitting
A a2 = supplier.get();
accumulator.accept(a2, t1);
A a3 = supplier.get();
accumulator.accept(a3, t2);
R r2 = finisher.apply(combiner.apply(a2, a3)); // result with splitting
} </code>
<para>For collectors that do not have the <c>UNORDERED</c> characteristic,
two accumulated results <c>a1</c> and <c>a2</c> are equivalent if
<c>finisher.apply(a1).equals(finisher.apply(a2))</c>. For unordered
collectors, equivalence is relaxed to allow for non-equality related to
differences in order. (For example, an unordered collector that accumulated
elements to a <c>List</c> would consider two lists equivalent if they
contained the same elements, ignoring order.)</para>
<para>Libraries that implement reduction based on <c>Collector</c>, such as
<c>Stream#collect(Collector)</c>, must adhere to the following constraints:
<ul>
<li>The first argument passed to the accumulator function, both
arguments passed to the combiner function, and the argument passed to the
finisher function must be the result of a previous invocation of the
result supplier, accumulator, or combiner functions.</li>
<li>The implementation should not do anything with the result of any of
the result supplier, accumulator, or combiner functions other than to
pass them again to the accumulator, combiner, or finisher functions,
or return them to the caller of the reduction operation.</li>
<li>If a result is passed to the combiner or finisher
function, and the same object is not returned from that function, it is
never used again.</li>
<li>Once a result is passed to the combiner or finisher function, it
is never passed to the accumulator function again.</li>
<li>For non-concurrent collectors, any result returned from the result
supplier, accumulator, or combiner functions must be serially
thread-confined. This enables collection to occur in parallel without
the <c>Collector</c> needing to implement any additional synchronization.
The reduction implementation must manage that the input is properly
partitioned, that partitions are processed in isolation, and combining
happens only after accumulation is complete.</li>
<li>For concurrent collectors, an implementation is free to (but not
required to) implement reduction concurrently. A concurrent reduction
is one where the accumulator function is called concurrently from
multiple threads, using the same concurrently-modifiable result container,
rather than keeping the result isolated during accumulation.
A concurrent reduction should only be applied if the collector has the
<c>Characteristics#UNORDERED</c> characteristics or if the
originating data is unordered.</li>
</ul></para>
<para>In addition to the predefined implementations in <c>Collectors</c>, the
static factory methods <c>#of(Supplier, BiConsumer, BinaryOperator, Characteristics...)</c>
can be used to construct collectors. For example, you could create a collector
that accumulates widgets into a <c>TreeSet</c> with:</para>
<code lang="text/java">{@code
Collector<Widget, ?, TreeSet<Widget>> intoSet =
Collector.of(TreeSet::new, TreeSet::add,
(left, right) -> { left.addAll(right); return left; });
}</code>
<para>(This behavior is also implemented by the predefined collector
<c>Collectors#toCollection(Supplier)</c>).</para>
<para>Added in 1.8.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/util/stream/Collector" title="Reference documentation">Java documentation for <code>java.util.stream.Collector</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
<Members>
<Member MemberName="Accumulator">
<MemberSignature Language="C#" Value="public Java.Util.Functions.IBiConsumer? Accumulator ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class Java.Util.Functions.IBiConsumer Accumulator() cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Util.Streams.ICollector.Accumulator" />
<MemberSignature Language="F#" Value="abstract member Accumulator : unit -> Java.Util.Functions.IBiConsumer" Usage="iCollector.Accumulator " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("accumulator", "()Ljava/util/function/BiConsumer;", "GetAccumulatorHandler:Java.Util.Streams.ICollectorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=24)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("accumulator", "()Ljava/util/function/BiConsumer;", "GetAccumulatorHandler:Java.Util.Streams.ICollectorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=24)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android24.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android24.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Util.Functions.IBiConsumer</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>A function that folds a value into a mutable result container.</summary>
<returns>a function which folds a value into a mutable result container</returns>
<remarks>
<para>A function that folds a value into a mutable result container.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/util/stream/Collector#accumulator()" title="Reference documentation">Java documentation for <code>java.util.stream.Collector.accumulator()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="Characteristics">
<MemberSignature Language="C#" Value="public System.Collections.Generic.ICollection<Java.Util.Streams.CollectorCharacteristics>? Characteristics ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class System.Collections.Generic.ICollection`1<class Java.Util.Streams.CollectorCharacteristics> Characteristics() cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Util.Streams.ICollector.Characteristics" />
<MemberSignature Language="F#" Value="abstract member Characteristics : unit -> System.Collections.Generic.ICollection<Java.Util.Streams.CollectorCharacteristics>" Usage="iCollector.Characteristics " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("characteristics", "()Ljava/util/Set;", "GetCharacteristicsHandler:Java.Util.Streams.ICollectorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=24)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("characteristics", "()Ljava/util/Set;", "GetCharacteristicsHandler:Java.Util.Streams.ICollectorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=24)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android24.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android24.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Collections.Generic.ICollection<Java.Util.Streams.CollectorCharacteristics></ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Returns a <c>Set</c> of <c>Collector.Characteristics</c> indicating
the characteristics of this Collector.</summary>
<returns>an immutable set of collector characteristics</returns>
<remarks>
<para>Returns a <c>Set</c> of <c>Collector.Characteristics</c> indicating
the characteristics of this Collector. This set should be immutable.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/util/stream/Collector#characteristics()" title="Reference documentation">Java documentation for <code>java.util.stream.Collector.characteristics()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="Combiner">
<MemberSignature Language="C#" Value="public Java.Util.Functions.IBinaryOperator? Combiner ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class Java.Util.Functions.IBinaryOperator Combiner() cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Util.Streams.ICollector.Combiner" />
<MemberSignature Language="F#" Value="abstract member Combiner : unit -> Java.Util.Functions.IBinaryOperator" Usage="iCollector.Combiner " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("combiner", "()Ljava/util/function/BinaryOperator;", "GetCombinerHandler:Java.Util.Streams.ICollectorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=24)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("combiner", "()Ljava/util/function/BinaryOperator;", "GetCombinerHandler:Java.Util.Streams.ICollectorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=24)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android24.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android24.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Util.Functions.IBinaryOperator</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>A function that accepts two partial results and merges them.</summary>
<returns>a function which combines two partial results into a combined
result</returns>
<remarks>
<para>A function that accepts two partial results and merges them. The
combiner function may fold state from one argument into the other and
return that, or may return a new result container.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/util/stream/Collector#combiner()" title="Reference documentation">Java documentation for <code>java.util.stream.Collector.combiner()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="Finisher">
<MemberSignature Language="C#" Value="public Java.Util.Functions.IFunction? Finisher ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class Java.Util.Functions.IFunction Finisher() cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Util.Streams.ICollector.Finisher" />
<MemberSignature Language="F#" Value="abstract member Finisher : unit -> Java.Util.Functions.IFunction" Usage="iCollector.Finisher " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("finisher", "()Ljava/util/function/Function;", "GetFinisherHandler:Java.Util.Streams.ICollectorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=24)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("finisher", "()Ljava/util/function/Function;", "GetFinisherHandler:Java.Util.Streams.ICollectorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=24)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android24.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android24.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Util.Functions.IFunction</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Perform the final transformation from the intermediate accumulation type
<c>A</c> to the final result type <c>R</c>.</summary>
<returns>a function which transforms the intermediate result to the final
result</returns>
<remarks>
<para>Perform the final transformation from the intermediate accumulation type
<c>A</c> to the final result type <c>R</c>.</para>
<para>If the characteristic <c>IDENTITY_TRANSFORM</c> is
set, this function may be presumed to be an identity transform with an
unchecked cast from <c>A</c> to <c>R</c>.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/util/stream/Collector#finisher()" title="Reference documentation">Java documentation for <code>java.util.stream.Collector.finisher()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="Of">
<MemberSignature Language="C#" Value="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);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class Java.Util.Streams.ICollector Of(class Java.Util.Functions.ISupplier supplier, class Java.Util.Functions.IBiConsumer accumulator, class Java.Util.Functions.IBinaryOperator combiner, class Java.Util.Streams.CollectorCharacteristics[] characteristics) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Util.Streams.ICollector.Of(Java.Util.Functions.ISupplier,Java.Util.Functions.IBiConsumer,Java.Util.Functions.IBinaryOperator,Java.Util.Streams.CollectorCharacteristics[])" />
<MemberSignature Language="F#" Value="static member Of : Java.Util.Functions.ISupplier * Java.Util.Functions.IBiConsumer * Java.Util.Functions.IBinaryOperator * Java.Util.Streams.CollectorCharacteristics[] -> Java.Util.Streams.ICollector" Usage="Java.Util.Streams.ICollector.Of (supplier, accumulator, combiner, characteristics)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[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)]</AttributeName>
<AttributeName Language="F#">[<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)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[Java.Interop.JavaTypeParameters(new System.String[] { "T", "R" })]</AttributeName>
<AttributeName Language="F#">[<Java.Interop.JavaTypeParameters(new System.String[] { "T", "R" })>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android24.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android24.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Util.Streams.ICollector</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="supplier" Type="Java.Util.Functions.ISupplier" />
<Parameter Name="accumulator" Type="Java.Util.Functions.IBiConsumer" />
<Parameter Name="combiner" Type="Java.Util.Functions.IBinaryOperator" />
<Parameter Name="characteristics" Type="Java.Util.Streams.CollectorCharacteristics[]">
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ParamArray]</AttributeName>
<AttributeName Language="F#">[<System.ParamArray>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<param name="supplier">The supplier function for the new collector</param>
<param name="accumulator">The accumulator function for the new collector</param>
<param name="combiner">The combiner function for the new collector</param>
<param name="characteristics">The collector characteristics for the new
collector</param>
<summary>Returns a new <c>Collector</c> described by the given <c>supplier</c>,
<c>accumulator</c>, <c>combiner</c>, and <c>finisher</c> functions.</summary>
<returns>the new <c>Collector</c></returns>
<remarks>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/util/stream/Collector#of(java.util.function.Supplier,%20java.util.function.BiConsumer,%20java.util.function.BinaryOperator,%20java.util.function.Function,%20java.util.stream.Characteristics)" title="Reference documentation">Java documentation for <code>java.util.stream.Collector.of(java.util.function.Supplier, java.util.function.BiConsumer, java.util.function.BinaryOperator, java.util.function.Function, java.util.stream.Characteristics)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="Of">
<MemberSignature Language="C#" Value="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);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class Java.Util.Streams.ICollector Of(class Java.Util.Functions.ISupplier supplier, class Java.Util.Functions.IBiConsumer accumulator, class Java.Util.Functions.IBinaryOperator combiner, class Java.Util.Functions.IFunction finisher, class Java.Util.Streams.CollectorCharacteristics[] characteristics) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Util.Streams.ICollector.Of(Java.Util.Functions.ISupplier,Java.Util.Functions.IBiConsumer,Java.Util.Functions.IBinaryOperator,Java.Util.Functions.IFunction,Java.Util.Streams.CollectorCharacteristics[])" />
<MemberSignature Language="F#" Value="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" Usage="Java.Util.Streams.ICollector.Of (supplier, accumulator, combiner, finisher, characteristics)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[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)]</AttributeName>
<AttributeName Language="F#">[<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)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[Java.Interop.JavaTypeParameters(new System.String[] { "T", "A", "R" })]</AttributeName>
<AttributeName Language="F#">[<Java.Interop.JavaTypeParameters(new System.String[] { "T", "A", "R" })>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android24.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android24.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Util.Streams.ICollector</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="supplier" Type="Java.Util.Functions.ISupplier" />
<Parameter Name="accumulator" Type="Java.Util.Functions.IBiConsumer" />
<Parameter Name="combiner" Type="Java.Util.Functions.IBinaryOperator" />
<Parameter Name="finisher" Type="Java.Util.Functions.IFunction" />
<Parameter Name="characteristics" Type="Java.Util.Streams.CollectorCharacteristics[]">
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ParamArray]</AttributeName>
<AttributeName Language="F#">[<System.ParamArray>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<param name="supplier">The supplier function for the new collector</param>
<param name="accumulator">The accumulator function for the new collector</param>
<param name="combiner">The combiner function for the new collector</param>
<param name="finisher">The finisher function for the new collector</param>
<param name="characteristics">The collector characteristics for the new
collector</param>
<summary>Returns a new <c>Collector</c> described by the given <c>supplier</c>,
<c>accumulator</c>, <c>combiner</c>, and <c>finisher</c> functions.</summary>
<returns>the new <c>Collector</c></returns>
<remarks>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/util/stream/Collector#of(java.util.function.Supplier,%20java.util.function.BiConsumer,%20java.util.function.BinaryOperator,%20java.util.function.Function,%20java.util.stream.Characteristics)" title="Reference documentation">Java documentation for <code>java.util.stream.Collector.of(java.util.function.Supplier, java.util.function.BiConsumer, java.util.function.BinaryOperator, java.util.function.Function, java.util.stream.Characteristics)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="Supplier">
<MemberSignature Language="C#" Value="public Java.Util.Functions.ISupplier? Supplier ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class Java.Util.Functions.ISupplier Supplier() cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Util.Streams.ICollector.Supplier" />
<MemberSignature Language="F#" Value="abstract member Supplier : unit -> Java.Util.Functions.ISupplier" Usage="iCollector.Supplier " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("supplier", "()Ljava/util/function/Supplier;", "GetSupplierHandler:Java.Util.Streams.ICollectorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=24)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("supplier", "()Ljava/util/function/Supplier;", "GetSupplierHandler:Java.Util.Streams.ICollectorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=24)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android24.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android24.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Util.Functions.ISupplier</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>A function that creates and returns a new mutable result container.</summary>
<returns>a function which returns a new, mutable result container</returns>
<remarks>
<para>A function that creates and returns a new mutable result container.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/util/stream/Collector#supplier()" title="Reference documentation">Java documentation for <code>java.util.stream.Collector.supplier()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
</Members>
</Type>