-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathDictionary.Java.swift
More file actions
90 lines (89 loc) · 3.17 KB
/
Copy pathDictionary.Java.swift
File metadata and controls
90 lines (89 loc) · 3.17 KB
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
#if JAVA
public extension Swift.Dictionary : java.util.Map<Key,Value> {
public func size() -> Int32 {
return dictionary.size()
}
public func isEmpty() -> Bool {
return dictionary.isEmpty()
}
public func containsKey(_ arg1: Object!) -> Bool {
return dictionary.containsKey(arg1)
}
public func containsValue(_ arg1: Object!) -> Bool {
return dictionary.containsValue(arg1)
}
public func `get`(_ arg1: Object!) -> Value! {
return dictionary.`get`(arg1)
}
public mutating func put(_ arg1: Key!, _ arg2: Value!) -> Value! {
makeUnique()
return dictionary.put(arg1, arg2)
}
public mutating func remove(_ arg1: Object!, _ arg2: Object!) -> Bool {
makeUnique()
return dictionary.remove(arg1, arg2)
}
public mutating func remove(_ arg1: Object!) -> Value! {
makeUnique()
return dictionary.remove(arg1)
}
public mutating func putAll(_ arg1: Map</*? extends Key,? extends Value*/Key,Value>!) {
makeUnique()
dictionary.putAll(arg1)
}
public mutating func clear() {
makeUnique()
dictionary.clear()
}
public func keySet() -> java.util.Set<Key>! {
return platformDictionary.keySet()
}
public func values() -> Collection<Value>! {
return platformDictionary.values()
}
public func entrySet() -> java.util.Set<Map.Entry<Key,Value>!>! {
return platformDictionary.entrySet()
}
public override func equals(_ arg1: Object!) -> Bool {
return dictionary.equals(arg1)
}
public override func hashCode() -> Int32 {
return dictionary.hashCode()
}
public func getOrDefault(_ arg1: Object!, _ arg2: Value!) -> Value! {
return dictionary.getOrDefault(arg1, arg2)
}
public func forEach(_ arg1: java.util.function.BiConsumer</*? super Key,? super Value*/Key,Value>!) {
dictionary.forEach(arg1)
}
public mutating func replaceAll(_ arg1: java.util.function.BiFunction</*? super Key,? super Value,? extends Value*/Key,Value>!) {
makeUnique()
dictionary.replaceAll(arg1)
}
public mutating func putIfAbsent(_ arg1: Key!, _ arg2: Value!) -> Value! {
makeUnique()
return dictionary.putIfAbsent(arg1, arg2)
}
public mutating func replace(_ arg1: Key!, _ arg2: Value!) -> Value! {
makeUnique()
return dictionary.replace(arg1, arg2)
}
public mutating func replace(_ arg1: Key!, _ arg2: Value!, _ arg3: Value!) -> Bool {
makeUnique()
return dictionary.replace(arg1, arg2, arg3)
}
public func computeIfAbsent(_ arg1: Key!, _ arg2: java.util.function.Function</*? super Key,? extends Value*/Key,Value>!) -> Value! {
return dictionary.computeIfAbsent(arg1, arg2)
}
public func computeIfPresent(_ arg1: Key!, _ arg2: java.util.function.BiFunction</*? super Key,? super Value,? extends Value*/Key,Value>!) -> Value! {
return dictionary.computeIfPresent(arg1, arg2)
}
public func compute(_ arg1: Key!, _ arg2: java.util.function.BiFunction</*? super Key,? super Value,? extends Value*/Key,Value>!) -> Value! {
return dictionary.compute(arg1, arg2)
}
public mutating func merge(_ arg1: Key!, _ arg2: Value!, _ arg3: java.util.function.BiFunction</*? super Value,? super Value,? extends Value*/Key,Value>!) -> Value! {
makeUnique()
return dictionary.merge(arg1, arg2, arg3)
}
}
#endif