1+ #if JAVA
2+ public extension Swift . Dictionary : java . util . Map < Key , Value > {
3+
4+ public func size( ) -> Int32 {
5+ return dictionary. size ( )
6+ }
7+ public func isEmpty( ) -> Bool {
8+ return dictionary. isEmpty ( )
9+ }
10+ public func containsKey( _ arg1: Object ! ) -> Bool {
11+ return dictionary. containsKey ( arg1)
12+ }
13+ public func containsValue( _ arg1: Object ! ) -> Bool {
14+ return dictionary. containsValue ( arg1)
15+ }
16+ public func `get`( _ arg1: Object ! ) -> Value ! {
17+ return dictionary. `get` ( arg1)
18+ }
19+ public mutating func put( _ arg1: Key ! , _ arg2: Value ! ) -> Value ! {
20+ makeUnique ( )
21+ return dictionary. put ( arg1, arg1)
22+ }
23+ public mutating func remove( _ arg1: Object ! , _ arg2: Object ! ) -> Bool {
24+ makeUnique ( )
25+ return dictionary. remove ( arg1, arg1)
26+ }
27+ public mutating func remove( _ arg1: Object ! ) -> Value ! {
28+ makeUnique ( )
29+ return dictionary. remove ( arg1)
30+ }
31+ public mutating func putAll( _ arg1: Map < /*? extends Key,? extends Value*/Key , Value > ! ) {
32+ makeUnique ( )
33+ dictionary. putAll ( arg1)
34+ }
35+ public mutating func clear( ) {
36+ makeUnique ( )
37+ dictionary. clear ( )
38+ }
39+ public func keySet( ) -> java . util . Set < Key > ! {
40+ return platformDictionary. keySet ( )
41+ }
42+ public func values( ) -> Collection < Value > ! {
43+ return platformDictionary. values ( )
44+ }
45+ public func entrySet( ) -> java . util . Set < Map . Entry < Key , Value > ! >! {
46+ return platformDictionary. entrySet ( )
47+ }
48+ public override func equals( _ arg1: Object ! ) -> Bool {
49+ return dictionary. equals ( arg1)
50+ }
51+ public override func hashCode( ) -> Int32 {
52+ return dictionary. hashCode ( )
53+ }
54+ public func getOrDefault( _ arg1: Object ! , _ arg2: Value ! ) -> Value ! {
55+ return dictionary. getOrDefault ( arg1, arg2)
56+ }
57+ public func forEach( _ arg1: java . util . function . BiConsumer < /*? super Key,? super Value*/Key , Value > ! ) {
58+ dictionary. forEach ( arg1)
59+ }
60+ public mutating func replaceAll( _ arg1: java . util . function . Bifunction < /*? super Key,? super Value,? extends Value*/Key , Value > ! ) {
61+ makeUnique ( )
62+ dictionary. replaceAll ( arg1)
63+ }
64+ public mutating func putIfAbsent( _ arg1: Key ! , _ arg2: Value ! ) -> Value ! {
65+ makeUnique ( )
66+ return dictionary. putIfAbsent ( arg1, arg2)
67+ }
68+ public mutating func replace( _ arg1: Key ! , _ arg2: Value ! ) -> Value ! {
69+ makeUnique ( )
70+ return dictionary. replace ( arg1, arg2)
71+ }
72+ public mutating func replace( _ arg1: Key ! , _ arg2: Value ! , _ arg3: Value ! ) -> Bool {
73+ makeUnique ( )
74+ return dictionary. replace ( arg1, arg2, arg3)
75+ }
76+ public func computeIfAbsent( _ arg1: Key ! , _ arg2: java . util . function . function < /*? super Key,? extends Value*/Key , Value > ! ) -> Value ! {
77+ return dictionary. computeIfAbsent ( arg1, arg2)
78+ }
79+ public func computeIfPresent( _ arg1: Key ! , _ arg2: java . util . function . Bifunction < /*? super Key,? super Value,? extends Value*/Key , Value > ! ) -> Value ! {
80+ return dictionary. computeIfPresent ( arg1, arg2)
81+ }
82+ public func compute( _ arg1: Key ! , _ arg2: java . util . function . Bifunction < /*? super Key,? super Value,? extends Value*/Key , Value > ! ) -> Value ! {
83+ return dictionary. compute ( arg1, arg2)
84+ }
85+ public mutating func merge( _ arg1: Key ! , _ arg2: Value ! , _ arg3: java . util . function . Bifunction < /*? super Value,? super Value,? extends Value*/Key , Value > ! ) -> Value ! {
86+ makeUnique ( )
87+ return dictionary. merge ( arg1, arg2, arg3)
88+ }
89+ }
90+ #endif
0 commit comments