forked from swiftlang/swift-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPriorityQueue.swift
More file actions
137 lines (119 loc) · 3.35 KB
/
PriorityQueue.swift
File metadata and controls
137 lines (119 loc) · 3.35 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
// Auto-generated by Java-to-Swift wrapper generator.
import SwiftJava
import SwiftJavaJNICore
@JavaClass("java.util.PriorityQueue")
open class PriorityQueue<PriorityQueue_E: AnyJavaObject>: JavaObject {
public typealias E = PriorityQueue_E
@JavaMethod
@_nonoverride public convenience init(_ arg0: PriorityQueue<E>?, environment: JNIEnvironment? = nil)
@JavaMethod
@_nonoverride public convenience init(_ arg0: JavaCollection<E>?, environment: JNIEnvironment? = nil)
@JavaMethod
@_nonoverride public convenience init(_ arg0: Int32, environment: JNIEnvironment? = nil)
@JavaMethod
@_nonoverride public convenience init(environment: JNIEnvironment? = nil)
/// Java method `remove`.
///
/// ### Java method signature
/// ```java
/// public boolean java.util.PriorityQueue.remove(java.lang.Object)
/// ```
@JavaMethod
open func remove(_ arg0: JavaObject?) -> Bool
/// Java method `size`.
///
/// ### Java method signature
/// ```java
/// public int java.util.PriorityQueue.size()
/// ```
@JavaMethod
open func size() -> Int32
/// Java method `clear`.
///
/// ### Java method signature
/// ```java
/// public void java.util.PriorityQueue.clear()
/// ```
@JavaMethod
open func clear()
/// Java method `add`.
///
/// ### Java method signature
/// ```java
/// public boolean java.util.PriorityQueue.add(E)
/// ```
@JavaMethod
open func add(_ arg0: E?) -> Bool
/// Java method `toArray`.
///
/// ### Java method signature
/// ```java
/// public <T> T[] java.util.PriorityQueue.toArray(T[])
/// ```
@JavaMethod
open func toArray<T: AnyJavaObject>(_ arg0: [T?]) -> [T?]
/// Java method `toArray`.
///
/// ### Java method signature
/// ```java
/// public java.lang.Object[] java.util.PriorityQueue.toArray()
/// ```
@JavaMethod
open func toArray() -> [JavaObject?]
/// Java method `iterator`.
///
/// ### Java method signature
/// ```java
/// public java.util.Iterator<E> java.util.PriorityQueue.iterator()
/// ```
@JavaMethod
open func iterator() -> JavaIterator<E>!
/// Java method `contains`.
///
/// ### Java method signature
/// ```java
/// public boolean java.util.PriorityQueue.contains(java.lang.Object)
/// ```
@JavaMethod
open func contains(_ arg0: JavaObject?) -> Bool
/// Java method `peek`.
///
/// ### Java method signature
/// ```java
/// public E java.util.PriorityQueue.peek()
/// ```
@JavaMethod(typeErasedResult: "E!")
open func peek() -> E!
/// Java method `removeAll`.
///
/// ### Java method signature
/// ```java
/// public boolean java.util.PriorityQueue.removeAll(java.util.Collection<?>)
/// ```
@JavaMethod
open func removeAll(_ arg0: JavaCollection<JavaObject>?) -> Bool
/// Java method `retainAll`.
///
/// ### Java method signature
/// ```java
/// public boolean java.util.PriorityQueue.retainAll(java.util.Collection<?>)
/// ```
@JavaMethod
open func retainAll(_ arg0: JavaCollection<JavaObject>?) -> Bool
/// Java method `poll`.
///
/// ### Java method signature
/// ```java
/// public E java.util.PriorityQueue.poll()
/// ```
@JavaMethod(typeErasedResult: "E!")
open func poll() -> E!
/// Java method `offer`.
///
/// ### Java method signature
/// ```java
/// public boolean java.util.PriorityQueue.offer(E)
/// ```
@JavaMethod
open func offer(_ arg0: E?) -> Bool
}