-
Notifications
You must be signed in to change notification settings - Fork 599
/
immutablePrimitiveObjectHashMap.stg
executable file
·760 lines (623 loc) · 24.3 KB
/
immutablePrimitiveObjectHashMap.stg
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
import "copyright.stg"
import "copyright.stg"
import "primitiveEquals.stg"
import "primitiveHashCode.stg"
import "primitiveLiteral.stg"
targetPath() ::= "org/eclipse/collections/impl/map/immutable/primitive"
fileName(primitive) ::= "Immutable<primitive.name>ObjectHashMap"
skipBoolean() ::= "true"
class(primitive) ::= <<
<body(primitive.type, primitive.name)>
>>
collectPrimitive(name, type) ::= <<
public Immutable<name>Bag collect<name>(<name>Function\<? super V> <type>Function)
{
return this.delegate.collect<name>(<type>Function).toImmutable();
}
public \<R extends Mutable<name>Collection> R collect<name>(<name>Function\<? super V> <type>Function, R target)
{
return this.delegate.collect<name>(<type>Function, target);
}
>>
body(type, name) ::= <<
<copyright()>
package org.eclipse.collections.impl.map.immutable.primitive;
import java.io.Serializable;
import java.util.Collection;
import java.util.Comparator;
import java.util.Iterator;
import java.util.Optional;
import org.eclipse.collections.api.<name>Iterable;
import org.eclipse.collections.api.Lazy<name>Iterable;
import org.eclipse.collections.api.LazyIterable;
import org.eclipse.collections.api.RichIterable;
import org.eclipse.collections.api.bag.ImmutableBag;
import org.eclipse.collections.api.bag.MutableBag;
import org.eclipse.collections.api.bag.primitive.ImmutableBooleanBag;
import org.eclipse.collections.api.bag.primitive.ImmutableByteBag;
import org.eclipse.collections.api.bag.primitive.ImmutableCharBag;
import org.eclipse.collections.api.bag.primitive.ImmutableDoubleBag;
import org.eclipse.collections.api.bag.primitive.ImmutableFloatBag;
import org.eclipse.collections.api.bag.primitive.ImmutableIntBag;
import org.eclipse.collections.api.bag.primitive.ImmutableLongBag;
import org.eclipse.collections.api.bag.primitive.ImmutableShortBag;
import org.eclipse.collections.api.bag.sorted.MutableSortedBag;
import org.eclipse.collections.api.block.function.Function;
import org.eclipse.collections.api.block.function.Function0;
import org.eclipse.collections.api.block.function.Function2;
import org.eclipse.collections.api.block.function.primitive.BooleanFunction;
import org.eclipse.collections.api.block.function.primitive.ByteFunction;
import org.eclipse.collections.api.block.function.primitive.CharFunction;
import org.eclipse.collections.api.block.function.primitive.DoubleFunction;
import org.eclipse.collections.api.block.function.primitive.DoubleObjectToDoubleFunction;
import org.eclipse.collections.api.block.function.primitive.FloatFunction;
import org.eclipse.collections.api.block.function.primitive.FloatObjectToFloatFunction;
import org.eclipse.collections.api.block.function.primitive.IntFunction;
import org.eclipse.collections.api.block.function.primitive.IntObjectToIntFunction;
import org.eclipse.collections.api.block.function.primitive.LongFunction;
import org.eclipse.collections.api.block.function.primitive.LongObjectToLongFunction;
import org.eclipse.collections.api.block.function.primitive.ShortFunction;
import org.eclipse.collections.api.block.predicate.Predicate;
import org.eclipse.collections.api.block.predicate.Predicate2;
import org.eclipse.collections.api.block.predicate.primitive.<name>ObjectPredicate;
import org.eclipse.collections.api.block.procedure.Procedure;
import org.eclipse.collections.api.block.procedure.Procedure2;
import org.eclipse.collections.api.block.procedure.primitive.<name>ObjectProcedure;
import org.eclipse.collections.api.block.procedure.primitive.<name>Procedure;
import org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure;
import org.eclipse.collections.api.collection.primitive.MutableBooleanCollection;
import org.eclipse.collections.api.collection.primitive.MutableByteCollection;
import org.eclipse.collections.api.collection.primitive.MutableCharCollection;
import org.eclipse.collections.api.collection.primitive.MutableDoubleCollection;
import org.eclipse.collections.api.collection.primitive.MutableFloatCollection;
import org.eclipse.collections.api.collection.primitive.MutableIntCollection;
import org.eclipse.collections.api.collection.primitive.MutableLongCollection;
import org.eclipse.collections.api.collection.primitive.MutableShortCollection;
import org.eclipse.collections.api.iterator.<name>Iterator;
import org.eclipse.collections.api.list.MutableList;
import org.eclipse.collections.api.map.ImmutableMap;
import org.eclipse.collections.api.map.MutableMap;
import org.eclipse.collections.api.map.primitive.<name>ObjectMap;
import org.eclipse.collections.api.map.primitive.Immutable<name>ObjectMap;
import org.eclipse.collections.api.map.primitive.Mutable<name>ObjectMap;
import org.eclipse.collections.api.map.sorted.MutableSortedMap;
import org.eclipse.collections.api.multimap.MutableMultimap;
import org.eclipse.collections.api.multimap.bag.ImmutableBagMultimap;
import org.eclipse.collections.api.partition.bag.PartitionImmutableBag;
import org.eclipse.collections.api.set.ImmutableSet;
import org.eclipse.collections.api.set.MutableSet;
import org.eclipse.collections.api.set.primitive.Mutable<name>Set;
import org.eclipse.collections.api.set.sorted.MutableSortedSet;
import org.eclipse.collections.api.tuple.Pair;
import org.eclipse.collections.api.tuple.primitive.<name>ObjectPair;
import org.eclipse.collections.impl.UnmodifiableIteratorAdapter;
import org.eclipse.collections.impl.collection.mutable.UnmodifiableMutableCollection;
import org.eclipse.collections.impl.map.mutable.primitive.<name>ObjectHashMap;
import org.eclipse.collections.impl.set.mutable.primitive.Unmodifiable<name>Set;
/**
* Immutable<name>ObjectHashMap is the non-modifiable equivalent of {@link <name>ObjectHashMap}.
* This file was automatically generated from template file immutablePrimitiveObjectHashMap.stg.
*
* @since 4.0.
*/
final class Immutable<name>ObjectHashMap\<V> extends AbstractImmutable<name>ObjectMap\<V> implements Serializable
{
private static final long serialVersionUID = 1L;
private final Mutable<name>ObjectMap\<V> delegate;
Immutable<name>ObjectHashMap(<name>ObjectMap\<? extends V> delegate)
{
this.delegate = new <name>ObjectHashMap\<V>(delegate);
}
public V get(<type> key)
{
return this.delegate.get(key);
}
public V getIfAbsent(<type> key, Function0\<? extends V> ifAbsent)
{
return this.delegate.getIfAbsent(key, ifAbsent);
}
public boolean containsKey(<type> key)
{
return this.delegate.containsKey(key);
}
public boolean containsValue(Object value)
{
return this.delegate.containsValue(value);
}
public Immutable<name>ObjectMap\<V> tap(Procedure\<? super V> procedure)
{
this.forEach(procedure);
return this;
}
public void forEachValue(Procedure\<? super V> procedure)
{
this.delegate.forEachValue(procedure);
}
public void forEachKey(<name>Procedure procedure)
{
this.delegate.forEachKey(procedure);
}
public void forEachKeyValue(<name>ObjectProcedure\<? super V> procedure)
{
this.delegate.forEachKeyValue(procedure);
}
public Immutable<name>ObjectMap\<V> select(<name>ObjectPredicate\<? super V> predicate)
{
return this.delegate.select(predicate).toImmutable();
}
public Immutable<name>ObjectMap\<V> reject(<name>ObjectPredicate\<? super V> predicate)
{
return this.delegate.reject(predicate).toImmutable();
}
public Immutable<name>ObjectMap\<V> toImmutable()
{
return this;
}
public int size()
{
return this.delegate.size();
}
public boolean isEmpty()
{
return this.delegate.isEmpty();
}
public boolean notEmpty()
{
return this.delegate.notEmpty();
}
public V getFirst()
{
return this.delegate.getFirst();
}
public V getLast()
{
return this.delegate.getLast();
}
public V getOnly()
{
return this.delegate.getOnly();
}
public boolean contains(Object object)
{
return this.delegate.contains(object);
}
public boolean containsAllIterable(Iterable\<?> source)
{
return this.delegate.containsAllIterable(source);
}
public boolean containsAll(Collection\<?> source)
{
return this.delegate.containsAll(source);
}
public boolean containsAllArguments(Object... elements)
{
return this.delegate.containsAllArguments(elements);
}
public ImmutableBag\<V> select(Predicate\<? super V> predicate)
{
return this.delegate.select(predicate).toImmutable();
}
public \<R extends Collection\<V>\> R select(Predicate\<? super V> predicate, R target)
{
return this.delegate.select(predicate, target);
}
public \<P> ImmutableBag\<V> selectWith(Predicate2\<? super V, ? super P> predicate, P parameter)
{
return this.delegate.selectWith(predicate, parameter).toImmutable();
}
public \<P, R extends Collection\<V>\> R selectWith(Predicate2\<? super V, ? super P> predicate, P parameter, R target)
{
return this.delegate.selectWith(predicate, parameter, target);
}
public ImmutableBag\<V> reject(Predicate\<? super V> predicate)
{
return this.delegate.reject(predicate).toImmutable();
}
public \<R extends Collection\<V>\> R reject(Predicate\<? super V> predicate, R target)
{
return this.delegate.reject(predicate, target);
}
public \<P> ImmutableBag\<V> rejectWith(Predicate2\<? super V, ? super P> predicate, P parameter)
{
return this.delegate.rejectWith(predicate, parameter).toImmutable();
}
public \<P, R extends Collection\<V>\> R rejectWith(Predicate2\<? super V, ? super P> predicate, P parameter, R target)
{
return this.delegate.rejectWith(predicate, parameter, target);
}
public PartitionImmutableBag\<V> partition(Predicate\<? super V> predicate)
{
return this.delegate.partition(predicate).toImmutable();
}
public \<P> PartitionImmutableBag\<V> partitionWith(Predicate2\<? super V, ? super P> predicate, P parameter)
{
return this.delegate.partitionWith(predicate, parameter).toImmutable();
}
public \<S> ImmutableBag\<S> selectInstancesOf(Class\<S> clazz)
{
return this.delegate.selectInstancesOf(clazz).toImmutable();
}
public \<VV> ImmutableBag\<VV> collect(Function\<? super V, ? extends VV> function)
{
return this.delegate.collect(function).toImmutable();
}
<collectPrimitive("Boolean", "boolean")>
<collectPrimitive("Byte", "byte")>
<collectPrimitive("Char", "char")>
<collectPrimitive("Double", "double")>
<collectPrimitive("Float", "float")>
<collectPrimitive("Int", "int")>
<collectPrimitive("Long", "long")>
<collectPrimitive("Short", "short")>
public \<P, VV> ImmutableBag\<VV> collectWith(Function2\<? super V, ? super P, ? extends VV> function, P parameter)
{
return this.delegate.collectWith(function, parameter).toImmutable();
}
public \<VV> ImmutableBag\<VV> collectIf(Predicate\<? super V> predicate, Function\<? super V, ? extends VV> function)
{
return this.delegate.collectIf(predicate, function).toImmutable();
}
public \<VV> ImmutableBag\<VV> flatCollect(Function\<? super V, ? extends Iterable\<VV>\> function)
{
return this.delegate.flatCollect(function).toImmutable();
}
public V detect(Predicate\<? super V> predicate)
{
return this.delegate.detect(predicate);
}
public \<P> V detectWith(Predicate2\<? super V, ? super P> predicate, P parameter)
{
return this.delegate.detectWith(predicate, parameter);
}
public Optional\<V> detectOptional(Predicate\<? super V> predicate)
{
return this.delegate.detectOptional(predicate);
}
public \<P> Optional\<V> detectWithOptional(Predicate2\<? super V, ? super P> predicate, P parameter)
{
return this.delegate.detectWithOptional(predicate, parameter);
}
public V detectIfNone(Predicate\<? super V> predicate, Function0\<? extends V> function)
{
return this.delegate.detectIfNone(predicate, function);
}
public \<P> V detectWithIfNone(Predicate2\<? super V, ? super P> predicate, P parameter, Function0\<? extends V> function)
{
return this.delegate.detectWithIfNone(predicate, parameter, function);
}
public int count(Predicate\<? super V> predicate)
{
return this.delegate.count(predicate);
}
public \<P> int countWith(Predicate2\<? super V, ? super P> predicate, P parameter)
{
return this.delegate.countWith(predicate, parameter);
}
public boolean anySatisfy(Predicate\<? super V> predicate)
{
return this.delegate.anySatisfy(predicate);
}
public \<P> boolean anySatisfyWith(Predicate2\<? super V, ? super P> predicate, P parameter)
{
return this.delegate.anySatisfyWith(predicate, parameter);
}
public boolean allSatisfy(Predicate\<? super V> predicate)
{
return this.delegate.allSatisfy(predicate);
}
public \<P> boolean allSatisfyWith(Predicate2\<? super V, ? super P> predicate, P parameter)
{
return this.delegate.allSatisfyWith(predicate, parameter);
}
public boolean noneSatisfy(Predicate\<? super V> predicate)
{
return this.delegate.noneSatisfy(predicate);
}
public \<P> boolean noneSatisfyWith(Predicate2\<? super V, ? super P> predicate, P parameter)
{
return this.delegate.noneSatisfyWith(predicate, parameter);
}
public \<IV> IV injectInto(IV injectedValue, Function2\<? super IV, ? super V, ? extends IV> function)
{
return this.delegate.injectInto(injectedValue, function);
}
public int injectInto(int injectedValue, IntObjectToIntFunction\<? super V> function)
{
return this.delegate.injectInto(injectedValue, function);
}
public long injectInto(long injectedValue, LongObjectToLongFunction\<? super V> function)
{
return this.delegate.injectInto(injectedValue, function);
}
public float injectInto(float injectedValue, FloatObjectToFloatFunction\<? super V> function)
{
return this.delegate.injectInto(injectedValue, function);
}
public double injectInto(double injectedValue, DoubleObjectToDoubleFunction\<? super V> function)
{
return this.delegate.injectInto(injectedValue, function);
}
public \<R extends Collection\<V>\> R into(R target)
{
return this.delegate.into(target);
}
public MutableList\<V> toList()
{
return this.delegate.toList();
}
public MutableList\<V> toSortedList()
{
return this.delegate.toSortedList();
}
public MutableList\<V> toSortedList(Comparator\<? super V> comparator)
{
return this.delegate.toSortedList(comparator);
}
public MutableSet\<V> toSet()
{
return this.delegate.toSet();
}
public MutableSortedSet\<V> toSortedSet()
{
return this.delegate.toSortedSet();
}
public MutableSortedSet\<V> toSortedSet(Comparator\<? super V> comparator)
{
return this.delegate.toSortedSet(comparator);
}
public MutableBag\<V> toBag()
{
return this.delegate.toBag();
}
public MutableSortedBag\<V> toSortedBag()
{
return this.delegate.toSortedBag();
}
public MutableSortedBag\<V> toSortedBag(Comparator\<? super V> comparator)
{
return this.delegate.toSortedBag(comparator);
}
public \<VV extends Comparable\<? super VV>\> MutableSortedBag\<V> toSortedBagBy(Function\<? super V, ? extends VV> function)
{
return this.delegate.toSortedBagBy(function);
}
public \<NK, NV> MutableMap\<NK, NV> toMap(Function\<? super V, ? extends NK> keyFunction, Function\<? super V, ? extends NV> valueFunction)
{
return this.delegate.toMap(keyFunction, valueFunction);
}
public \<NK, NV> MutableSortedMap\<NK, NV> toSortedMap(Function\<? super V, ? extends NK> keyFunction, Function\<? super V, ? extends NV> valueFunction)
{
return this.delegate.toSortedMap(keyFunction, valueFunction);
}
public \<NK, NV> MutableSortedMap\<NK, NV> toSortedMap(Comparator\<? super NK> comparator, Function\<? super V, ? extends NK> keyFunction, Function\<? super V, ? extends NV> valueFunction)
{
return this.delegate.toSortedMap(comparator, keyFunction, valueFunction);
}
public LazyIterable\<V> asLazy()
{
return this.delegate.asLazy();
}
public Object[] toArray()
{
return this.delegate.toArray();
}
public \<T> T[] toArray(T[] a)
{
return this.delegate.toArray(a);
}
public V min(Comparator\<? super V> comparator)
{
return this.delegate.min(comparator);
}
public V max(Comparator\<? super V> comparator)
{
return this.delegate.max(comparator);
}
public V min()
{
return this.delegate.min();
}
public V max()
{
return this.delegate.max();
}
public long sumOfInt(IntFunction\<? super V> function)
{
return this.delegate.sumOfInt(function);
}
public double sumOfFloat(FloatFunction\<? super V> function)
{
return this.delegate.sumOfFloat(function);
}
public long sumOfLong(LongFunction\<? super V> function)
{
return this.delegate.sumOfLong(function);
}
public double sumOfDouble(DoubleFunction\<? super V> function)
{
return this.delegate.sumOfDouble(function);
}
public String makeString()
{
return this.delegate.makeString();
}
public String makeString(String separator)
{
return this.delegate.makeString(separator);
}
public String makeString(String start, String separator, String end)
{
return this.delegate.makeString(start, separator, end);
}
public void appendString(Appendable appendable)
{
this.delegate.appendString(appendable);
}
public void appendString(Appendable appendable, String separator)
{
this.delegate.appendString(appendable, separator);
}
public void appendString(Appendable appendable, String start, String separator, String end)
{
this.delegate.appendString(appendable, start, separator, end);
}
public \<VV> ImmutableBagMultimap\<VV, V> groupBy(Function\<? super V, ? extends VV> function)
{
return this.delegate.groupBy(function).toImmutable();
}
public \<VV, R extends MutableMultimap\<VV, V>\> R groupBy(Function\<? super V, ? extends VV> function, R target)
{
return this.delegate.groupBy(function, target);
}
public \<VV> ImmutableBagMultimap\<VV, V> groupByEach(Function\<? super V, ? extends Iterable\<VV>\> function)
{
return this.delegate.groupByEach(function).toImmutable();
}
public \<VV, R extends MutableMultimap\<VV, V>\> R groupByEach(Function\<? super V, ? extends Iterable\<VV>\> function, R target)
{
return this.delegate.groupByEach(function, target);
}
public \<VV> ImmutableMap\<VV, V> groupByUniqueKey(Function\<? super V, ? extends VV> function)
{
return this.delegate.groupByUniqueKey(function).toImmutable();
}
public \<VV, R extends MutableMap\<VV, V>\> R groupByUniqueKey(Function\<? super V, ? extends VV> function, R target)
{
return this.delegate.groupByUniqueKey(function, target);
}
public \<S> ImmutableBag\<Pair\<V, S>\> zip(Iterable\<S> that)
{
return this.delegate.zip(that).toImmutable();
}
public \<S, R extends Collection\<Pair\<V, S>\>> R zip(Iterable\<S> that, R target)
{
return this.delegate.zip(that, target);
}
public ImmutableSet\<Pair\<V, Integer>\> zipWithIndex()
{
return this.delegate.zipWithIndex().toImmutable();
}
public \<R extends Collection\<Pair\<V, Integer>\>> R zipWithIndex(R target)
{
return this.delegate.zipWithIndex(target);
}
public RichIterable\<RichIterable\<V>\> chunk(int size)
{
return this.delegate.chunk(size);
}
public \<K, VV> ImmutableMap\<K, VV> aggregateInPlaceBy(Function\<? super V, ? extends K> groupBy, Function0\<? extends VV> zeroValueFactory, Procedure2\<? super VV, ? super V> mutatingAggregator)
{
return this.delegate.aggregateInPlaceBy(groupBy, zeroValueFactory, mutatingAggregator).toImmutable();
}
public \<K, VV> ImmutableMap\<K, VV> aggregateBy(Function\<? super V, ? extends K> groupBy, Function0\<? extends VV> zeroValueFactory, Function2\<? super VV, ? super V, ? extends VV> nonMutatingAggregator)
{
return this.delegate.aggregateBy(groupBy, zeroValueFactory, nonMutatingAggregator).toImmutable();
}
public \<VV extends Comparable\<? super VV>\> V maxBy(Function\<? super V, ? extends VV> function)
{
return this.delegate.maxBy(function);
}
public \<VV extends Comparable\<? super VV>\> V minBy(Function\<? super V, ? extends VV> function)
{
return this.delegate.minBy(function);
}
public \<VV extends Comparable\<? super VV>\> MutableSortedSet\<V> toSortedSetBy(Function\<? super V, ? extends VV> function)
{
return this.delegate.toSortedSetBy(function);
}
public \<VV extends Comparable\<? super VV>\> MutableList\<V> toSortedListBy(Function\<? super V, ? extends VV> function)
{
return this.delegate.toSortedListBy(function);
}
public \<VV, R extends Collection\<VV>\> R flatCollect(Function\<? super V, ? extends Iterable\<VV>\> function, R target)
{
return this.delegate.flatCollect(function, target);
}
public \<VV, R extends Collection\<VV>\> R collectIf(Predicate\<? super V> predicate, Function\<? super V, ? extends VV> function, R target)
{
return this.delegate.collectIf(predicate, function, target);
}
public \<P, VV, R extends Collection\<VV>\> R collectWith(Function2\<? super V, ? super P, ? extends VV> function, P parameter, R targetCollection)
{
return this.delegate.collectWith(function, parameter, targetCollection);
}
public \<VV, R extends Collection\<VV>\> R collect(Function\<? super V, ? extends VV> function, R target)
{
return this.delegate.collect(function, target);
}
public Immutable<name>ObjectMap\<V> newWithKeyValue(<type> key, V value)
{
<name>ObjectHashMap\<V> map = new <name>ObjectHashMap\<V>(this);
map.put(key, value);
return map.toImmutable();
}
public Immutable<name>ObjectMap\<V> newWithoutKey(<type> key)
{
<name>ObjectHashMap\<V> map = new <name>ObjectHashMap\<V>(this);
map.removeKey(key);
return map.toImmutable();
}
public Immutable<name>ObjectMap\<V> newWithoutAllKeys(<name>Iterable keys)
{
<name>ObjectHashMap\<V> map = new <name>ObjectHashMap\<V>(this);
<name>Iterator iterator = keys.<type>Iterator();
while (iterator.hasNext())
{
map.removeKey(iterator.next());
}
return map.toImmutable();
}
public void forEach(Procedure\<? super V> procedure)
{
this.each(procedure);
}
public void each(Procedure\<? super V> procedure)
{
this.delegate.forEach(procedure);
}
public void forEachWithIndex(ObjectIntProcedure\<? super V> objectIntProcedure)
{
this.delegate.forEachWithIndex(objectIntProcedure);
}
public \<P> void forEachWith(Procedure2\<? super V, ? super P> procedure, P parameter)
{
this.delegate.forEachWith(procedure, parameter);
}
public Iterator\<V> iterator()
{
return new UnmodifiableIteratorAdapter\<V>(this.delegate.iterator());
}
public Mutable<name>Set keySet()
{
return Unmodifiable<name>Set.of(this.delegate.keySet());
}
public Collection\<V> values()
{
return UnmodifiableMutableCollection.of(this.delegate.values());
}
public Lazy<name>Iterable keysView()
{
return this.delegate.keysView();
}
public RichIterable\<<name>ObjectPair\<V>\> keyValuesView()
{
return this.delegate.keyValuesView();
}
public boolean equals(Object obj)
{
return this.delegate.equals(obj);
}
public int hashCode()
{
return this.delegate.hashCode();
}
public String toString()
{
return this.delegate.toString();
}
private Object writeReplace()
{
return new Immutable<name>ObjectMapSerializationProxy\<V>(this);
}
}
>>