-
Notifications
You must be signed in to change notification settings - Fork 0
/
lambda_ja-level2.tmx
9681 lines (9679 loc) · 471 KB
/
lambda_ja-level2.tmx
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
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE tmx SYSTEM "tmx14.dtd">
<tmx version="1.4">
<header creationtool="OmegaT" o-tmf="OmegaT TMX" adminlang="EN-US" datatype="plaintext" creationtoolversion="2.6.3_7" segtype="sentence" srclang="EN-US"/>
<body>
<!-- Default translations -->
<tu>
<tuv xml:lang="EN-US">
<seg>#average()</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032909Z">
<seg>#average()</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>#collect(Supplier, BiConsumer, BiConsumer)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032859Z">
<seg>#collect(Supplier, BiConsumer, BiConsumer)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>#doubleStream(java.util.Spliterator.OfDouble, boolean)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032834Z">
<seg>#doubleStream(java.util.Spliterator.OfDouble, boolean)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>#findFirst()</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032900Z">
<seg>#findFirst()</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>#flatMap(Function)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032840Z">
<seg>#flatMap(Function)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>#forEach(Consumer)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032842Z">
<seg>#forEach(Consumer)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>#forEach(DoubleConsumer)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032923Z">
<seg>#forEach(DoubleConsumer)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>#forEach(IntConsumer)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032915Z">
<seg>#forEach(IntConsumer)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>#forEach(LongConsumer)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032905Z">
<seg>#forEach(LongConsumer)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>#groupingBy(Function)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T033427Z">
<seg>#groupingBy(Function)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>#groupingBy(Function, Collector)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032347Z">
<seg>#groupingBy(Function, Collector)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>#groupingBy(Function, Supplier, Collector)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032347Z">
<seg>#groupingBy(Function, Supplier, Collector)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>#groupingByConcurrent(Function)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032348Z">
<seg>#groupingByConcurrent(Function)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>#groupingByConcurrent(Function, Collector)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T033427Z">
<seg>#groupingByConcurrent(Function, Collector)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>#groupingByConcurrent(Function, Supplier, Collector)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T034223Z">
<seg>#groupingByConcurrent(Function, Supplier, Collector)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>#intStream(java.util.Spliterator.OfInt, boolean)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032834Z">
<seg>#intStream(java.util.Spliterator.OfInt, boolean)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>#longStream(java.util.Spliterator.OfLong, boolean)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032834Z">
<seg>#longStream(java.util.Spliterator.OfLong, boolean)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>#max()</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032909Z">
<seg>#max()</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>#max(Comparator)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032852Z">
<seg>#max(Comparator)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>#min()</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032908Z">
<seg>#min()</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>#min(Comparator)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032852Z">
<seg>#min(Comparator)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>#partitioningBy(Predicate)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T040122Z">
<seg>#partitioningBy(Predicate)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>#partitioningBy(Predicate, Collector)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T035915Z">
<seg>#partitioningBy(Predicate, Collector)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>#reduce(BinaryOperator)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032853Z">
<seg>#reduce(BinaryOperator)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>#reduce(Object, BinaryOperator)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032851Z">
<seg>#reduce(Object, BinaryOperator)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>#reduce(double, DoubleBinaryOperator)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032927Z">
<seg>#reduce(double, DoubleBinaryOperator)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>#reduce(int, IntBinaryOperator)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032920Z">
<seg>#reduce(int, IntBinaryOperator)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>#reduce(long, LongBinaryOperator)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032911Z">
<seg>#reduce(long, LongBinaryOperator)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>#reducing(BinaryOperator)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T031648Z">
<seg>#reducing(BinaryOperator)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>#reducing(Object, BinaryOperator)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T031221Z">
<seg>#reducing(Object, BinaryOperator)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>#reducing(Object, Function, BinaryOperator)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T031224Z">
<seg>#reducing(Object, Function, BinaryOperator)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>#stream(java.util.Spliterator, boolean)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032833Z">
<seg>#stream(java.util.Spliterator, boolean)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>#sum()</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032908Z">
<seg>#sum()</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>#summarizingDouble(ToDoubleFunction)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T051041Z">
<seg>#summarizingDouble(ToDoubleFunction)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>#summarizingInt(ToIntFunction)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T051059Z">
<seg>#summarizingInt(ToIntFunction)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>#summarizingLong(ToLongFunction)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T051042Z">
<seg>#summarizingLong(ToLongFunction)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>#toConcurrentMap(Function, Function)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T040641Z">
<seg>#toConcurrentMap(Function, Function)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>#toConcurrentMap(Function, Function, BinaryOperator)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T041720Z">
<seg>#toConcurrentMap(Function, Function, BinaryOperator)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>#toConcurrentMap(Function, Function, BinaryOperator, Supplier)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T050305Z">
<seg>#toConcurrentMap(Function, Function, BinaryOperator, Supplier)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>#toMap(Function, Function)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T041719Z">
<seg>#toMap(Function, Function)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>#toMap(Function, Function, BinaryOperator)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T040640Z">
<seg>#toMap(Function, Function, BinaryOperator)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>#toMap(Function, Function, BinaryOperator, Supplier)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T040641Z">
<seg>#toMap(Function, Function, BinaryOperator, Supplier)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>(Depending on the specific reduction operation, this may perform better or worse, depending on the relative cost of the accumulator and combiner functions.)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T070612Z">
<seg>(具体的な簡約処理によっては、これはより性能が良い場合もあれば悪い場合もある。これは累積関数と統合関数の相対的なコストに依存する)。</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>(Even if the language had a "parallel for-each" construct, the mutative accumulation approach would still required the developer to provide thread-safe updates to the shared accumulating variable {@code sum}, and the required synchronization would then likely eliminate any performance gain from parallelism.) Using {@code reduce()} instead removes all of the burden of parallelizing the reduction operation, and the library can provide an efficient parallel implementation with no additional synchronization required.</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140210T130547Z">
<seg>(たとえ言語が「並列for-each」文を備えていたとしても、可変な累積を使う方法では共有累積変数{@code sum}の更新に対するスレッド安全性を開発者が確保する必要があり、そこで必要となる同期は、並列化から得られる効率の向上をほとんど失なわせてしまうだろう)。代わりに{@code reduce()}を使えば簡約処理を並列化する際の一切の面倒を除去でき、ライブラリは余分な同期処理を必要とせずに効率的な並列実装を提供できるようになる。</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>(For example, an unordered collector that accumulated elements to a {@code List} would consider two lists equivalent if they contained the same elements, ignoring order.)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T081833Z">
<seg>(例えば、要素を{@code List}に累積する、順序を持たないコレクタは、2つのリストが順序を無視して同じ要素を含んでいれば等価であるとして扱うだろう)。</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>(For example, {@link Collection#stream() Collection.stream()} creates a sequential stream, and {@link Collection#parallelStream() Collection.parallelStream()} creates a parallel one.) This choice of execution mode may be modified by the {@link #sequential()} or {@link #parallel()} methods, and may be queried with the {@link #isParallel()} method.</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140211T065029Z">
<seg>(例えば、{@link Collection#stream() Collection.stream()}は逐次ストリームを作成し、{@link Collection#parallelStream() Collection.parallelStream()}は並列ストリームを作成する)。この実行モードの選択は{@link #sequential()}メソッドや{@link #parallel()}メソッドで変更でき、{@link #isParallel()}メソッドで調べられる。</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>(If a mapped stream is {@code null} an empty stream is used, instead.)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140211T065716Z">
<seg>(もし写像されたストリームが{@code null}であれば、代わりに空のストリームが使われる)。</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>(If a stable result is desired, use {@link #findFirst()} instead.)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140211T083502Z">
<seg>(もし安定した結果を望むならば、代わりに{@link #findFirst()}を用いよ)。</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>(If a stream does require closing, it can be declared as a resource in a {@code try}-with-resources statement.)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140211T064636Z">
<seg>(もしストリームを閉じる必要がある場合、{@code try}-with-resources文の資源として宣言できる)。</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>(Summation is an example of a <bpt i="0" x="0"><a0></bpt>reduction<ept i="0"></a0></ept> operation.)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140210T075326Z">
<seg>(和の計算は<bpt i="0" x="0"><a0></bpt>簡約<ept i="0"></a0></ept>(reduction)処理の1例である)。</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>(The combiner is necessary in parallel reductions, where the input is partitioned, a partial accumulation computed for each partition, and then the partial results are combined to produce a final result.)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140210T131655Z">
<seg>(統合関数は並列簡約において必要である。並列簡約では入力が分割され、部分的な累積結果が各部分に対して計算され、そして最終結果を生成するために中間結果が統合される)。</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>(The {@code ?} for the second type parameter merely indicates that we don't care about the intermediate representation used by this collector.) If we wanted to create a collector to tabulate the sum of salaries by department, we could reuse {@code summingSalaries} using {@link java.util.stream.Collectors#groupingBy(java.util.function.Function, java.util.stream.Collector) groupingBy}:</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140211T014234Z">
<seg>(第2型変数に対する{@code ?}は、単にコレクタが使う中間表現について気にしないという意味である)。もし部門ごとの給与の合計の表を作るコレクタを作りたいなら、{@link java.util.stream.Collectors#groupingBy(java.util.function.Function, java.util.stream.Collector) groupingBy}を利用して{@code summingSalaries}を再利用できる。</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>(This behavior becomes even more important when the input stream is infinite and not merely large.)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140210T033529Z">
<seg>(この挙動は入力のストリームが単に大きいだけでなく、無限である場合にはより重要となる)。</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>(This behavior is also implemented by the predefined collector {@link Collectors#toCollection(Supplier)}).</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T070237Z">
<seg>この挙動は予め用意されたコレクタ{@link Collectors#toCollection(Supplier)}を使っても実装できる。</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>(This might be true if the result container has no intrinsic order, such as a {@link Set}.)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T074722Z">
<seg>(これは結果コンテナが{@link Set}など、本質的な順序を持たない場合に当てはまる)。</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>(a op b) op c == a op (b op c)
}</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032833Z">
<seg>(a op b) op c == a op (b op c)
}</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>(c, e) -> c.add(e.toString()),</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032817Z">
<seg>(c, e) -> c.add(e.toString()),</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>(c1, c2) -> c1.addAll(c2));
}</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032819Z">
<seg>(c1, c2) -> c1.addAll(c2));
}</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>(left, right) -> { left.addAll(right); return left; });
}</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T070209Z">
<seg>(left, right) -> { left.addAll(right); return left; });
}</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>(s, a) -> s + ", " + a));
}</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T041512Z">
<seg>(s, a) -> s + ", " + a));
}</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>(sum, b) -> sum + b.getWeight())</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032807Z">
<seg>(sum, b) -> sum + b.getWeight())</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>(where {@link java.util.stream.Collectors#groupingByConcurrent} is the concurrent equivalent of {@code groupingBy}).</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140211T020302Z">
<seg>(ここで{@link java.util.stream.Collectors#groupingByConcurrent}は{@code groupingBy}の並行版である)。</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>.collect(ArrayList::new, ArrayList::add, ArrayList::addAll);
}</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032821Z">
<seg>.collect(ArrayList::new, ArrayList::add, ArrayList::addAll);
}</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>.collect(Collectors.groupingBy(Employee::getDepartment));</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032934Z">
<seg>.collect(Collectors.groupingBy(Employee::getDepartment));</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>.collect(Collectors.groupingBy(Employee::getDepartment,</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032934Z">
<seg>.collect(Collectors.groupingBy(Employee::getDepartment,</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>.collect(Collectors.groupingBy(Transaction::getBuyer));
}</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032830Z">
<seg>.collect(Collectors.groupingBy(Transaction::getBuyer));
}</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>.collect(Collectors.joining(", "));</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032931Z">
<seg>.collect(Collectors.joining(", "));</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>.collect(Collectors.partitioningBy(s -> s.getGrade() >= PASS_THRESHOLD));
}</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032936Z">
<seg>.collect(Collectors.partitioningBy(s -> s.getGrade() >= PASS_THRESHOLD));
}</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>.collect(Collectors.summingInt(Employee::getSalary)));</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032932Z">
<seg>.collect(Collectors.summingInt(Employee::getSalary)));</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>.collect(Collectors.toList());
}</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032821Z">
<seg>.collect(Collectors.toList());
}</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>.collect(Collectors.toList()); // No side-effects!</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140210T090753Z">
<seg>.collect(Collectors.toList()); // 副作用無し!</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>.collect(groupingByConcurrent(Transaction::getBuyer));
}</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032832Z">
<seg>.collect(groupingByConcurrent(Transaction::getBuyer));
}</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>.filter(b -> b.getColor() == RED)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032735Z">
<seg>.filter(b -> b.getColor() == RED)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>.filter(e -> e > 2)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032905Z">
<seg>.filter(e -> e > 2)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>.filter(e -> e.length() > 3)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032841Z">
<seg>.filter(e -> e.length() > 3)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>.filter(p -> p.getGender() == MALE)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032843Z">
<seg>.filter(p -> p.getGender() == MALE)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>.filter(w -> w.getColor() == RED)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032835Z">
<seg>.filter(w -> w.getColor() == RED)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>.forEach(s -> results.add(s)); // Unnecessary use of side-effects!</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032748Z">
<seg>.forEach(s -> results.add(s)); // Unnecessary use of side-effects!</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>.map(Object::toString)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032931Z">
<seg>.map(Object::toString)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>.map(String::toUpperCase)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032841Z">
<seg>.map(String::toUpperCase)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>.map(e -> e * e)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032905Z">
<seg>.map(e -> e * e)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>.mapToDouble(w -> w.getWeight())</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032923Z">
<seg>.mapToDouble(w -> w.getWeight())</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>.mapToInt(Widget::getWeight)</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032802Z">
<seg>.mapToInt(Widget::getWeight)</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>.mapToInt(b -> b.getWeight())</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032735Z">
<seg>.mapToInt(b -> b.getWeight())</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>.mapToInt(w -> w.getWeight())</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032835Z">
<seg>.mapToInt(w -> w.getWeight())</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>.mapToLong(w -> w.getWeight())</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032903Z">
<seg>.mapToLong(w -> w.getWeight())</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>.max();
}</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032802Z">
<seg>.max();
}</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>.peek(e -> System.out.println("Filtered value: " + e))</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140211T072240Z">
<seg>.peek(e -> System.out.println("絞り込まれた値: " + e))</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>.peek(e -> System.out.println("Mapped value: " + e))</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140211T072407Z">
<seg>.peek(e -> System.out.println("写像された値: " + e))</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>.reduce(0,</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032807Z">
<seg>.reduce(0,</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>.sum();
}</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032736Z">
<seg>.sum();
}</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>.toArray(Person[]::new);
}</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032843Z">
<seg>.toArray(Person[]::new);
}</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>.toString();
}</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032856Z">
<seg>.toString();
}</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>.unordered()</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032832Z">
<seg>.unordered()</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>// Accumulate names into a List</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140213T121157Z">
<seg>// 名前をListに累積する</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>// Accumulate names into a TreeSet</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140213T121209Z">
<seg>// 名前をTreeSetに累積する</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>// Compute sum of salaries by department</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140213T121327Z">
<seg>// 部署ごとに給与の合計を求める</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>// Compute sum of salaries of employee</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140213T121255Z">
<seg>// 従業員の給与の和を求める</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>// Convert elements to strings and concatenate them, separated by commas</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140213T121229Z">
<seg>// 要素を文字列に変換し、カンマで区切って連結する</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>// Group employees by department</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140213T121303Z">
<seg>// 部署ごとに従業員をグループ化する</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>// Partition students into passing and failing</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140213T121349Z">
<seg>// 学生を合格者と不合格者に分ける</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>1.8</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032833Z">
<seg>1.8</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>= Collectors.groupingBy(Employee::getDepartment, summingSalaries);
}</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T072056Z">
<seg>= Collectors.groupingBy(Employee::getDepartment, summingSalaries);
}</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>= Collectors.summingInt(Employee::getSalary))
}</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T071914Z">
<seg>= Collectors.summingInt(Employee::getSalary))
}</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>= Collectors.summingInt(Employee::getSalary);
}</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032823Z">
<seg>= Collectors.summingInt(Employee::getSalary);
}</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>= employees.stream()</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032933Z">
<seg>= employees.stream()</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>= employees.stream().collect(Collectors.groupingBy(Employee::getDepartment,</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032824Z">
<seg>= employees.stream().collect(Collectors.groupingBy(Employee::getDepartment,</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>= people.stream().collect(collectingAndThen(toList(), Collections::unmodifiableList));
}</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032938Z">
<seg>= people.stream().collect(collectingAndThen(toList(), Collections::unmodifiableList));
}</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>= people.stream().collect(groupingBy(Person::getCity,</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T031506Z">
<seg>= people.stream().collect(groupingBy(Person::getCity,</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>= people.stream().collect(groupingBy(Person::getCity, ConcurrentSkipListMap::new,</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T035801Z">
<seg>= people.stream().collect(groupingBy(Person::getCity, ConcurrentSkipListMap::new,</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>= people.stream().collect(groupingBy(Person::getCity, TreeMap::new,</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T033552Z">
<seg>= people.stream().collect(groupingBy(Person::getCity, TreeMap::new,</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>= people.stream().collect(groupingBy(Person::getCity, reducing(BinaryOperator.maxBy(byHeight))));
}</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T031111Z">
<seg>= people.stream().collect(groupingBy(Person::getCity, reducing(BinaryOperator.maxBy(byHeight))));
}</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>= people.stream().collect(groupingByConcurrent(Person::getCity,</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T035717Z">
<seg>= people.stream().collect(groupingByConcurrent(Person::getCity,</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>= personStream.collect(Collectors.groupingBy(Person::getCity));
}</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032857Z">
<seg>= personStream.collect(Collectors.groupingBy(Person::getCity));
}</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>= personStream.collect(Collectors.groupingBy(Person::getState,</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032858Z">
<seg>= personStream.collect(Collectors.groupingBy(Person::getState,</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>= txns.parallelStream()</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T032830Z">
<seg>= txns.parallelStream()</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>A <bpt i="0" x="0"><a0></bpt>mutable reduction operation<ept i="0"></a0></ept> 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.</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140215T051500Z">
<seg>入力要素を可変な結果コンテナに累積し、さらに追加可能な処理として、全ての入力要素が処理された後に累積した結果を最終形に変換する<bpt i="0" x="0"><a0></bpt>可変的簡約処理<ept i="0"></a0></ept>。</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>A <bpt i="0" x="0"><e0></bpt>mutable reduction operation<ept i="0"></e0></ept> accumulates input elements into a mutable result container, such as a {@code Collection} or {@code StringBuilder}, as it processes the elements in the stream.</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140211T011406Z">
<seg><bpt i="0" x="0"><e0></bpt>可変的簡約処理(mutable reduction operation)<ept i="0"></e0></ept>は入力要素を処理しながら{@code Collection}や{@code StringBuilder}などの可変な結果コンテナに累積していく。</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">
<seg>A <bpt i="0" x="0"><e0></bpt>reduction<ept i="0"></e0></ept> operation (also called a <bpt i="1" x="1"><e1></bpt>fold<ept i="1"></e1></ept>) takes a sequence of input elements and combines them into a single summary result by repeated application of a combining operation, such as finding the sum or maximum of a set of numbers, or accumulating elements into a list.</seg>
</tuv>
<tuv xml:lang="JA" changeid="taku0" changedate="20140210T100928Z">
<seg><bpt i="0" x="0"><e0></bpt>簡約(reduction)<ept i="0"></e0></ept>処理(<bpt i="1" x="1"><e1></bpt>折り畳み(fold)<ept i="1"></e1></ept>とも呼ばれる)は入力要素の列を受け取り、統合処理を繰り返し適用して1つの要約値に統合する。例えば数値の集合の和や最大値を求めたり、要素を1つのリストに累積する。</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN-US">