forked from swiftlang/swift-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTreeMap.swift
More file actions
202 lines (178 loc) · 4.77 KB
/
TreeMap.swift
File metadata and controls
202 lines (178 loc) · 4.77 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
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
// Auto-generated by Java-to-Swift wrapper generator.
import SwiftJava
import SwiftJavaJNICore
@JavaClass("java.util.TreeMap")
open class TreeMap<TreeMap_K: AnyJavaObject, TreeMap_V: AnyJavaObject>: JavaObject {
public typealias K = TreeMap_K
public typealias V = TreeMap_V
@JavaMethod
@_nonoverride public convenience init(environment: JNIEnvironment? = nil)
/// Java method `remove`.
///
/// ### Java method signature
/// ```java
/// public V java.util.TreeMap.remove(java.lang.Object)
/// ```
@JavaMethod(typeErasedResult: "V!")
open func remove(_ arg0: JavaObject?) -> V!
/// Java method `size`.
///
/// ### Java method signature
/// ```java
/// public int java.util.TreeMap.size()
/// ```
@JavaMethod
open func size() -> Int32
/// Java method `get`.
///
/// ### Java method signature
/// ```java
/// public V java.util.TreeMap.get(java.lang.Object)
/// ```
@JavaMethod(typeErasedResult: "V!")
open func get(_ arg0: JavaObject?) -> V!
/// Java method `put`.
///
/// ### Java method signature
/// ```java
/// public V java.util.TreeMap.put(K,V)
/// ```
@JavaMethod(typeErasedResult: "V!")
open func put(_ arg0: K?, _ arg1: V?) -> V!
/// Java method `values`.
///
/// ### Java method signature
/// ```java
/// public java.util.Collection<V> java.util.TreeMap.values()
/// ```
@JavaMethod
open func values() -> JavaCollection<V>!
/// Java method `clone`.
///
/// ### Java method signature
/// ```java
/// public java.lang.Object java.util.TreeMap.clone()
/// ```
@JavaMethod
open override func clone() -> JavaObject!
/// Java method `clear`.
///
/// ### Java method signature
/// ```java
/// public void java.util.TreeMap.clear()
/// ```
@JavaMethod
open func clear()
/// Java method `replace`.
///
/// ### Java method signature
/// ```java
/// public boolean java.util.TreeMap.replace(K,V,V)
/// ```
@JavaMethod
open func replace(_ arg0: K?, _ arg1: V?, _ arg2: V?) -> Bool
/// Java method `replace`.
///
/// ### Java method signature
/// ```java
/// public V java.util.TreeMap.replace(K,V)
/// ```
@JavaMethod(typeErasedResult: "V!")
open func replace(_ arg0: K?, _ arg1: V?) -> V!
/// Java method `putIfAbsent`.
///
/// ### Java method signature
/// ```java
/// public V java.util.TreeMap.putIfAbsent(K,V)
/// ```
@JavaMethod(typeErasedResult: "V!")
open func putIfAbsent(_ arg0: K?, _ arg1: V?) -> V!
/// Java method `keySet`.
///
/// ### Java method signature
/// ```java
/// public java.util.Set<K> java.util.TreeMap.keySet()
/// ```
@JavaMethod
open func keySet() -> JavaSet<K>!
/// Java method `containsValue`.
///
/// ### Java method signature
/// ```java
/// public boolean java.util.TreeMap.containsValue(java.lang.Object)
/// ```
@JavaMethod
open func containsValue(_ arg0: JavaObject?) -> Bool
/// Java method `containsKey`.
///
/// ### Java method signature
/// ```java
/// public boolean java.util.TreeMap.containsKey(java.lang.Object)
/// ```
@JavaMethod
open func containsKey(_ arg0: JavaObject?) -> Bool
/// Java method `firstKey`.
///
/// ### Java method signature
/// ```java
/// public K java.util.TreeMap.firstKey()
/// ```
@JavaMethod(typeErasedResult: "K!")
open func firstKey() -> K!
/// Java method `putFirst`.
///
/// ### Java method signature
/// ```java
/// public V java.util.TreeMap.putFirst(K,V)
/// ```
@JavaMethod(typeErasedResult: "V!")
open func putFirst(_ arg0: K?, _ arg1: V?) -> V!
/// Java method `putLast`.
///
/// ### Java method signature
/// ```java
/// public V java.util.TreeMap.putLast(K,V)
/// ```
@JavaMethod(typeErasedResult: "V!")
open func putLast(_ arg0: K?, _ arg1: V?) -> V!
/// Java method `lowerKey`.
///
/// ### Java method signature
/// ```java
/// public K java.util.TreeMap.lowerKey(K)
/// ```
@JavaMethod(typeErasedResult: "K!")
open func lowerKey(_ arg0: K?) -> K!
/// Java method `floorKey`.
///
/// ### Java method signature
/// ```java
/// public K java.util.TreeMap.floorKey(K)
/// ```
@JavaMethod(typeErasedResult: "K!")
open func floorKey(_ arg0: K?) -> K!
/// Java method `ceilingKey`.
///
/// ### Java method signature
/// ```java
/// public K java.util.TreeMap.ceilingKey(K)
/// ```
@JavaMethod(typeErasedResult: "K!")
open func ceilingKey(_ arg0: K?) -> K!
/// Java method `higherKey`.
///
/// ### Java method signature
/// ```java
/// public K java.util.TreeMap.higherKey(K)
/// ```
@JavaMethod(typeErasedResult: "K!")
open func higherKey(_ arg0: K?) -> K!
/// Java method `lastKey`.
///
/// ### Java method signature
/// ```java
/// public K java.util.TreeMap.lastKey()
/// ```
@JavaMethod(typeErasedResult: "K!")
open func lastKey() -> K!
}