-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathHashMap.swift
636 lines (436 loc) · 28.4 KB
/
HashMap.swift
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
/// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' ///
/// class java.util.HashMap ///
open class HashMap: /* class java.util.AbstractMap */ UnavailableObject {
public convenience init?( casting object: JavaObject, _ file: StaticString = #file, _ line: Int = #line ) {
self.init( javaObject: nil )
object.withJavaObject {
self.javaObject = $0
}
}
private static var HashMapJNIClass: jclass?
/// static final int java.util.HashMap.DEFAULT_INITIAL_CAPACITY
// Skipping field: true false false false false false
/// static final float java.util.HashMap.DEFAULT_LOAD_FACTOR
// Skipping field: true false false false false false
/// static final int java.util.HashMap.MAXIMUM_CAPACITY
// Skipping field: true false false false false false
/// static final int java.util.HashMap.MIN_TREEIFY_CAPACITY
// Skipping field: true false false false false false
/// static final int java.util.HashMap.TREEIFY_THRESHOLD
// Skipping field: true false false false false false
/// static final int java.util.HashMap.UNTREEIFY_THRESHOLD
// Skipping field: true false false false false false
/// private static final long java.util.HashMap.serialVersionUID
/// transient java.util.Set java.util.HashMap.entrySet
// Skipping field: true false false false true false
/// final float java.util.HashMap.loadFactor
// Skipping field: true false false false false false
/// transient int java.util.HashMap.modCount
// Skipping field: true false false false false false
/// transient int java.util.HashMap.size
// Skipping field: true false false false true false
/// transient java.util.HashMap$Node[] java.util.HashMap.table
// Skipping field: true false false false false false
/// int java.util.HashMap.threshold
// Skipping field: true false false false false false
/// transient java.util.Set java.util.AbstractMap.keySet
// Skipping field: true false false false true false
/// transient java.util.Collection java.util.AbstractMap.values
// Skipping field: true false false false true false
/// public java.util.HashMap()
private static var new_MethodID_1: jmethodID?
public convenience init() {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __object = JNIMethod.NewObject( className: "java/util/HashMap", classCache: &HashMap.HashMapJNIClass, methodSig: "()V", methodCache: &HashMap.new_MethodID_1, args: &__args, locals: &__locals )
self.init( javaObject: __object )
JNI.DeleteLocalRef( __object )
}
/// public java.util.HashMap(int)
private static var new_MethodID_2: jmethodID?
public convenience init( initialCapacity: Int ) {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = jvalue( i: jint(initialCapacity) )
let __object = JNIMethod.NewObject( className: "java/util/HashMap", classCache: &HashMap.HashMapJNIClass, methodSig: "(I)V", methodCache: &HashMap.new_MethodID_2, args: &__args, locals: &__locals )
self.init( javaObject: __object )
JNI.DeleteLocalRef( __object )
}
public convenience init( _ _initialCapacity: Int ) {
self.init( initialCapacity: _initialCapacity )
}
/// public java.util.HashMap(int,float)
private static var new_MethodID_3: jmethodID?
public convenience init( initialCapacity: Int, loadFactor: Float ) {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 2 )
__args[0] = jvalue( i: jint(initialCapacity) )
__args[1] = jvalue( f: loadFactor )
let __object = JNIMethod.NewObject( className: "java/util/HashMap", classCache: &HashMap.HashMapJNIClass, methodSig: "(IF)V", methodCache: &HashMap.new_MethodID_3, args: &__args, locals: &__locals )
self.init( javaObject: __object )
JNI.DeleteLocalRef( __object )
}
public convenience init( _ _initialCapacity: Int, _ _loadFactor: Float ) {
self.init( initialCapacity: _initialCapacity, loadFactor: _loadFactor )
}
/// public java.util.HashMap(java.util.Map)
private static var new_MethodID_4: jmethodID?
public convenience init( m: JavaMap? ) {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: m, mapClass: "java/util/Map", locals: &__locals )
let __object = JNIMethod.NewObject( className: "java/util/HashMap", classCache: &HashMap.HashMapJNIClass, methodSig: "(Ljava/util/Map;)V", methodCache: &HashMap.new_MethodID_4, args: &__args, locals: &__locals )
self.init( javaObject: __object )
JNI.DeleteLocalRef( __object )
}
public convenience init( _ _m: JavaMap? ) {
self.init( m: _m )
}
/// static java.lang.Class java.util.HashMap.comparableClassFor(java.lang.Object)
// Skipping method: true false false false false
/// static int java.util.HashMap.compareComparables(java.lang.Class,java.lang.Object,java.lang.Object)
// Skipping method: true false false false false
/// static final int java.util.HashMap.hash(java.lang.Object)
// Skipping method: true false false false false
/// static final int java.util.HashMap.tableSizeFor(int)
// Skipping method: true false false false false
/// void java.util.HashMap.afterNodeAccess(java.util.HashMap$Node)
// Skipping method: true false false false false
/// void java.util.HashMap.afterNodeInsertion(boolean)
// Skipping method: true false false false false
/// void java.util.HashMap.afterNodeRemoval(java.util.HashMap$Node)
// Skipping method: true false false false false
/// final int java.util.HashMap.capacity()
// Skipping method: true false false false false
/// public void java.util.HashMap.clear()
private static var clear_MethodID_5: jmethodID?
open func clear() {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "clear", methodSig: "()V", methodCache: &HashMap.clear_MethodID_5, args: &__args, locals: &__locals )
}
/// public java.lang.Object java.util.HashMap.clone()
private static var clone_MethodID_6: jmethodID?
override open func clone() -> JavaObject! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "clone", methodSig: "()Ljava/lang/Object;", methodCache: &HashMap.clone_MethodID_6, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? JavaObject( javaObject: __return ) : nil
}
/// public java.lang.Object java.util.HashMap.compute(java.lang.Object,java.util.function.BiFunction)
private static var compute_MethodID_7: jmethodID?
open func compute( arg0: JavaObject?, arg1: /* interface java.util.function.BiFunction */ UnavailableProtocol? ) -> JavaObject! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 2 )
__args[0] = JNIType.toJava( value: arg0, locals: &__locals )
__args[1] = JNIType.toJava( value: arg1, locals: &__locals )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "compute", methodSig: "(Ljava/lang/Object;Ljava/util/function/BiFunction;)Ljava/lang/Object;", methodCache: &HashMap.compute_MethodID_7, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? JavaObject( javaObject: __return ) : nil
}
open func compute( _ _arg0: JavaObject?, _ _arg1: /* interface java.util.function.BiFunction */ UnavailableProtocol? ) -> JavaObject! {
return compute( arg0: _arg0, arg1: _arg1 )
}
/// public java.lang.Object java.util.HashMap.computeIfAbsent(java.lang.Object,java.util.function.Function)
private static var computeIfAbsent_MethodID_8: jmethodID?
open func computeIfAbsent( arg0: JavaObject?, arg1: /* interface java.util.function.Function */ UnavailableProtocol? ) -> JavaObject! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 2 )
__args[0] = JNIType.toJava( value: arg0, locals: &__locals )
__args[1] = JNIType.toJava( value: arg1, locals: &__locals )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "computeIfAbsent", methodSig: "(Ljava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object;", methodCache: &HashMap.computeIfAbsent_MethodID_8, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? JavaObject( javaObject: __return ) : nil
}
open func computeIfAbsent( _ _arg0: JavaObject?, _ _arg1: /* interface java.util.function.Function */ UnavailableProtocol? ) -> JavaObject! {
return computeIfAbsent( arg0: _arg0, arg1: _arg1 )
}
/// public java.lang.Object java.util.HashMap.computeIfPresent(java.lang.Object,java.util.function.BiFunction)
private static var computeIfPresent_MethodID_9: jmethodID?
open func computeIfPresent( arg0: JavaObject?, arg1: /* interface java.util.function.BiFunction */ UnavailableProtocol? ) -> JavaObject! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 2 )
__args[0] = JNIType.toJava( value: arg0, locals: &__locals )
__args[1] = JNIType.toJava( value: arg1, locals: &__locals )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "computeIfPresent", methodSig: "(Ljava/lang/Object;Ljava/util/function/BiFunction;)Ljava/lang/Object;", methodCache: &HashMap.computeIfPresent_MethodID_9, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? JavaObject( javaObject: __return ) : nil
}
open func computeIfPresent( _ _arg0: JavaObject?, _ _arg1: /* interface java.util.function.BiFunction */ UnavailableProtocol? ) -> JavaObject! {
return computeIfPresent( arg0: _arg0, arg1: _arg1 )
}
/// public boolean java.util.HashMap.containsKey(java.lang.Object)
private static var containsKey_MethodID_10: jmethodID?
open func containsKey( arg0: JavaObject? ) -> Bool {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: arg0, locals: &__locals )
let __return = JNIMethod.CallBooleanMethod( object: javaObject, methodName: "containsKey", methodSig: "(Ljava/lang/Object;)Z", methodCache: &HashMap.containsKey_MethodID_10, args: &__args, locals: &__locals )
return __return != jboolean(JNI_FALSE)
}
open func containsKey( _ _arg0: JavaObject? ) -> Bool {
return containsKey( arg0: _arg0 )
}
/// public boolean java.util.HashMap.containsValue(java.lang.Object)
private static var containsValue_MethodID_11: jmethodID?
open func containsValue( arg0: JavaObject? ) -> Bool {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: arg0, locals: &__locals )
let __return = JNIMethod.CallBooleanMethod( object: javaObject, methodName: "containsValue", methodSig: "(Ljava/lang/Object;)Z", methodCache: &HashMap.containsValue_MethodID_11, args: &__args, locals: &__locals )
return __return != jboolean(JNI_FALSE)
}
open func containsValue( _ _arg0: JavaObject? ) -> Bool {
return containsValue( arg0: _arg0 )
}
/// public java.util.Set java.util.HashMap.entrySet()
private static var entrySet_MethodID_12: jmethodID?
open func entrySet() -> JavaSet! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "entrySet", methodSig: "()Ljava/util/Set;", methodCache: &HashMap.entrySet_MethodID_12, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? JavaSetForward( javaObject: __return ) : nil
}
/// public void java.util.HashMap.forEach(java.util.function.BiConsumer)
private static var forEach_MethodID_13: jmethodID?
open func forEach( arg0: /* interface java.util.function.BiConsumer */ UnavailableProtocol? ) {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: arg0, locals: &__locals )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "forEach", methodSig: "(Ljava/util/function/BiConsumer;)V", methodCache: &HashMap.forEach_MethodID_13, args: &__args, locals: &__locals )
}
open func forEach( _ _arg0: /* interface java.util.function.BiConsumer */ UnavailableProtocol? ) {
forEach( arg0: _arg0 )
}
/// public java.lang.Object java.util.HashMap.get(java.lang.Object)
private static var get_MethodID_14: jmethodID?
open func get( arg0: JavaObject? ) -> JavaObject! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: arg0, locals: &__locals )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "get", methodSig: "(Ljava/lang/Object;)Ljava/lang/Object;", methodCache: &HashMap.get_MethodID_14, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? JavaObject( javaObject: __return ) : nil
}
open func get( _ _arg0: JavaObject? ) -> JavaObject! {
return get( arg0: _arg0 )
}
/// final java.util.HashMap$Node java.util.HashMap.getNode(int,java.lang.Object)
// Skipping method: true false false false false
/// public java.lang.Object java.util.HashMap.getOrDefault(java.lang.Object,java.lang.Object)
private static var getOrDefault_MethodID_15: jmethodID?
open func getOrDefault( arg0: JavaObject?, arg1: JavaObject? ) -> JavaObject! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 2 )
__args[0] = JNIType.toJava( value: arg0, locals: &__locals )
__args[1] = JNIType.toJava( value: arg1, locals: &__locals )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getOrDefault", methodSig: "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;", methodCache: &HashMap.getOrDefault_MethodID_15, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? JavaObject( javaObject: __return ) : nil
}
open func getOrDefault( _ _arg0: JavaObject?, _ _arg1: JavaObject? ) -> JavaObject! {
return getOrDefault( arg0: _arg0, arg1: _arg1 )
}
/// void java.util.HashMap.internalWriteEntries(java.io.ObjectOutputStream) throws java.io.IOException
// Skipping method: true false false false false
/// public boolean java.util.HashMap.isEmpty()
private static var isEmpty_MethodID_16: jmethodID?
open func isEmpty() -> Bool {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallBooleanMethod( object: javaObject, methodName: "isEmpty", methodSig: "()Z", methodCache: &HashMap.isEmpty_MethodID_16, args: &__args, locals: &__locals )
return __return != jboolean(JNI_FALSE)
}
/// public java.util.Set java.util.HashMap.keySet()
private static var keySet_MethodID_17: jmethodID?
open func keySet() -> JavaSet! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "keySet", methodSig: "()Ljava/util/Set;", methodCache: &HashMap.keySet_MethodID_17, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? JavaSetForward( javaObject: __return ) : nil
}
/// final float java.util.HashMap.loadFactor()
// Skipping method: true false false false false
/// public java.lang.Object java.util.HashMap.merge(java.lang.Object,java.lang.Object,java.util.function.BiFunction)
private static var merge_MethodID_18: jmethodID?
open func merge( arg0: JavaObject?, arg1: JavaObject?, arg2: /* interface java.util.function.BiFunction */ UnavailableProtocol? ) -> JavaObject! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 3 )
__args[0] = JNIType.toJava( value: arg0, locals: &__locals )
__args[1] = JNIType.toJava( value: arg1, locals: &__locals )
__args[2] = JNIType.toJava( value: arg2, locals: &__locals )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "merge", methodSig: "(Ljava/lang/Object;Ljava/lang/Object;Ljava/util/function/BiFunction;)Ljava/lang/Object;", methodCache: &HashMap.merge_MethodID_18, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? JavaObject( javaObject: __return ) : nil
}
open func merge( _ _arg0: JavaObject?, _ _arg1: JavaObject?, _ _arg2: /* interface java.util.function.BiFunction */ UnavailableProtocol? ) -> JavaObject! {
return merge( arg0: _arg0, arg1: _arg1, arg2: _arg2 )
}
/// java.util.HashMap$Node java.util.HashMap.newNode(int,java.lang.Object,java.lang.Object,java.util.HashMap$Node)
// Skipping method: true false false false false
/// java.util.HashMap$TreeNode java.util.HashMap.newTreeNode(int,java.lang.Object,java.lang.Object,java.util.HashMap$Node)
// Skipping method: true false false false false
/// public java.lang.Object java.util.HashMap.put(java.lang.Object,java.lang.Object)
private static var put_MethodID_19: jmethodID?
open func put( arg0: JavaObject?, arg1: JavaObject? ) -> JavaObject! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 2 )
__args[0] = JNIType.toJava( value: arg0, locals: &__locals )
__args[1] = JNIType.toJava( value: arg1, locals: &__locals )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "put", methodSig: "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;", methodCache: &HashMap.put_MethodID_19, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? JavaObject( javaObject: __return ) : nil
}
open func put( _ _arg0: JavaObject?, _ _arg1: JavaObject? ) -> JavaObject! {
return put( arg0: _arg0, arg1: _arg1 )
}
/// public void java.util.HashMap.putAll(java.util.Map)
private static var putAll_MethodID_20: jmethodID?
open func putAll( arg0: JavaMap? ) {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: arg0, mapClass: "java/util/Map", locals: &__locals )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "putAll", methodSig: "(Ljava/util/Map;)V", methodCache: &HashMap.putAll_MethodID_20, args: &__args, locals: &__locals )
}
open func putAll( _ _arg0: JavaMap? ) {
putAll( arg0: _arg0 )
}
/// public java.lang.Object java.util.HashMap.putIfAbsent(java.lang.Object,java.lang.Object)
private static var putIfAbsent_MethodID_21: jmethodID?
open func putIfAbsent( arg0: JavaObject?, arg1: JavaObject? ) -> JavaObject! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 2 )
__args[0] = JNIType.toJava( value: arg0, locals: &__locals )
__args[1] = JNIType.toJava( value: arg1, locals: &__locals )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "putIfAbsent", methodSig: "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;", methodCache: &HashMap.putIfAbsent_MethodID_21, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? JavaObject( javaObject: __return ) : nil
}
open func putIfAbsent( _ _arg0: JavaObject?, _ _arg1: JavaObject? ) -> JavaObject! {
return putIfAbsent( arg0: _arg0, arg1: _arg1 )
}
/// final void java.util.HashMap.putMapEntries(java.util.Map,boolean)
// Skipping method: true false false false false
/// final java.lang.Object java.util.HashMap.putVal(int,java.lang.Object,java.lang.Object,boolean,boolean)
// Skipping method: true false false false false
/// private void java.util.HashMap.readObject(java.io.ObjectInputStream) throws java.io.IOException,java.lang.ClassNotFoundException
/// void java.util.HashMap.reinitialize()
// Skipping method: true false false false false
/// public java.lang.Object java.util.HashMap.remove(java.lang.Object)
private static var remove_MethodID_22: jmethodID?
open func remove( arg0: JavaObject? ) -> JavaObject! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: arg0, locals: &__locals )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "remove", methodSig: "(Ljava/lang/Object;)Ljava/lang/Object;", methodCache: &HashMap.remove_MethodID_22, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? JavaObject( javaObject: __return ) : nil
}
open func remove( _ _arg0: JavaObject? ) -> JavaObject! {
return remove( arg0: _arg0 )
}
/// public boolean java.util.HashMap.remove(java.lang.Object,java.lang.Object)
private static var remove_MethodID_23: jmethodID?
open func remove( arg0: JavaObject?, arg1: JavaObject? ) -> Bool {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 2 )
__args[0] = JNIType.toJava( value: arg0, locals: &__locals )
__args[1] = JNIType.toJava( value: arg1, locals: &__locals )
let __return = JNIMethod.CallBooleanMethod( object: javaObject, methodName: "remove", methodSig: "(Ljava/lang/Object;Ljava/lang/Object;)Z", methodCache: &HashMap.remove_MethodID_23, args: &__args, locals: &__locals )
return __return != jboolean(JNI_FALSE)
}
open func remove( _ _arg0: JavaObject?, _ _arg1: JavaObject? ) -> Bool {
return remove( arg0: _arg0, arg1: _arg1 )
}
/// final java.util.HashMap$Node java.util.HashMap.removeNode(int,java.lang.Object,java.lang.Object,boolean,boolean)
// Skipping method: true false false false false
/// public java.lang.Object java.util.HashMap.replace(java.lang.Object,java.lang.Object)
private static var replace_MethodID_24: jmethodID?
open func replace( arg0: JavaObject?, arg1: JavaObject? ) -> JavaObject! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 2 )
__args[0] = JNIType.toJava( value: arg0, locals: &__locals )
__args[1] = JNIType.toJava( value: arg1, locals: &__locals )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "replace", methodSig: "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;", methodCache: &HashMap.replace_MethodID_24, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? JavaObject( javaObject: __return ) : nil
}
open func replace( _ _arg0: JavaObject?, _ _arg1: JavaObject? ) -> JavaObject! {
return replace( arg0: _arg0, arg1: _arg1 )
}
/// public boolean java.util.HashMap.replace(java.lang.Object,java.lang.Object,java.lang.Object)
private static var replace_MethodID_25: jmethodID?
open func replace( arg0: JavaObject?, arg1: JavaObject?, arg2: JavaObject? ) -> Bool {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 3 )
__args[0] = JNIType.toJava( value: arg0, locals: &__locals )
__args[1] = JNIType.toJava( value: arg1, locals: &__locals )
__args[2] = JNIType.toJava( value: arg2, locals: &__locals )
let __return = JNIMethod.CallBooleanMethod( object: javaObject, methodName: "replace", methodSig: "(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z", methodCache: &HashMap.replace_MethodID_25, args: &__args, locals: &__locals )
return __return != jboolean(JNI_FALSE)
}
open func replace( _ _arg0: JavaObject?, _ _arg1: JavaObject?, _ _arg2: JavaObject? ) -> Bool {
return replace( arg0: _arg0, arg1: _arg1, arg2: _arg2 )
}
/// public void java.util.HashMap.replaceAll(java.util.function.BiFunction)
private static var replaceAll_MethodID_26: jmethodID?
open func replaceAll( arg0: /* interface java.util.function.BiFunction */ UnavailableProtocol? ) {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: arg0, locals: &__locals )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "replaceAll", methodSig: "(Ljava/util/function/BiFunction;)V", methodCache: &HashMap.replaceAll_MethodID_26, args: &__args, locals: &__locals )
}
open func replaceAll( _ _arg0: /* interface java.util.function.BiFunction */ UnavailableProtocol? ) {
replaceAll( arg0: _arg0 )
}
/// java.util.HashMap$Node java.util.HashMap.replacementNode(java.util.HashMap$Node,java.util.HashMap$Node)
// Skipping method: true false false false false
/// java.util.HashMap$TreeNode java.util.HashMap.replacementTreeNode(java.util.HashMap$Node,java.util.HashMap$Node)
// Skipping method: true false false false false
/// final java.util.HashMap$Node[] java.util.HashMap.resize()
// Skipping method: true false false false false
/// public int java.util.HashMap.size()
private static var size_MethodID_27: jmethodID?
open func size() -> Int {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallIntMethod( object: javaObject, methodName: "size", methodSig: "()I", methodCache: &HashMap.size_MethodID_27, args: &__args, locals: &__locals )
return Int(__return)
}
/// final void java.util.HashMap.treeifyBin(java.util.HashMap$Node[],int)
// Skipping method: true false false false false
/// public java.util.Collection java.util.HashMap.values()
private static var values_MethodID_28: jmethodID?
open func values() -> /* interface java.util.Collection */ UnavailableProtocol! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "values", methodSig: "()Ljava/util/Collection;", methodCache: &HashMap.values_MethodID_28, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? /* interface java.util.Collection */ UnavailableProtocolForward( javaObject: __return ) : nil
}
/// private void java.util.HashMap.writeObject(java.io.ObjectOutputStream) throws java.io.IOException
/// In declared protocol but not defined.. ///
/// public abstract boolean java.util.Map.equals(java.lang.Object)
private static var equals_MethodID_29: jmethodID?
override open func equals( arg0: JavaObject? ) -> Bool {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: arg0, locals: &__locals )
let __return = JNIMethod.CallBooleanMethod( object: javaObject, methodName: "equals", methodSig: "(Ljava/lang/Object;)Z", methodCache: &HashMap.equals_MethodID_29, args: &__args, locals: &__locals )
return __return != jboolean(JNI_FALSE)
}
override open func equals( _ _arg0: JavaObject? ) -> Bool {
return equals( arg0: _arg0 )
}
/// public abstract int java.util.Map.hashCode()
private static var hashCode_MethodID_30: jmethodID?
override open func hashCode() -> Int {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallIntMethod( object: javaObject, methodName: "hashCode", methodSig: "()I", methodCache: &HashMap.hashCode_MethodID_30, args: &__args, locals: &__locals )
return Int(__return)
}
}