forked from swiftlang/swift-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHashSet.swift
More file actions
120 lines (105 loc) · 2.96 KB
/
HashSet.swift
File metadata and controls
120 lines (105 loc) · 2.96 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
// Auto-generated by Java-to-Swift wrapper generator.
import SwiftJava
import SwiftJavaJNICore
@JavaClass("java.util.HashSet", implements: JavaSet<JavaObject>.self)
open class HashSet<HashSet_E: AnyJavaObject>: JavaObject {
public typealias E = HashSet_E
@JavaMethod
@_nonoverride public convenience init(_ arg0: Int32, environment: JNIEnvironment? = nil)
@JavaMethod
@_nonoverride public convenience init(_ arg0: Int32, _ arg1: Float, environment: JNIEnvironment? = nil)
@JavaMethod
@_nonoverride public convenience init(_ arg0: JavaCollection<E>?, environment: JNIEnvironment? = nil)
@JavaMethod
@_nonoverride public convenience init(environment: JNIEnvironment? = nil)
/// Java method `remove`.
///
/// ### Java method signature
/// ```java
/// public boolean java.util.HashSet.remove(java.lang.Object)
/// ```
@JavaMethod
open func remove(_ arg0: JavaObject?) -> Bool
/// Java method `size`.
///
/// ### Java method signature
/// ```java
/// public int java.util.HashSet.size()
/// ```
@JavaMethod
open func size() -> Int32
/// Java method `clone`.
///
/// ### Java method signature
/// ```java
/// public java.lang.Object java.util.HashSet.clone()
/// ```
@JavaMethod
open override func clone() -> JavaObject!
/// Java method `clear`.
///
/// ### Java method signature
/// ```java
/// public void java.util.HashSet.clear()
/// ```
@JavaMethod
open func clear()
/// Java method `isEmpty`.
///
/// ### Java method signature
/// ```java
/// public boolean java.util.HashSet.isEmpty()
/// ```
@JavaMethod
open func isEmpty() -> Bool
/// Java method `add`.
///
/// ### Java method signature
/// ```java
/// public boolean java.util.HashSet.add(E)
/// ```
@JavaMethod
open func add(_ arg0: E?) -> Bool
/// Java method `toArray`.
///
/// ### Java method signature
/// ```java
/// public <T> T[] java.util.HashSet.toArray(T[])
/// ```
@JavaMethod
open func toArray<T: AnyJavaObject>(_ arg0: [T?]) -> [T?]
/// Java method `toArray`.
///
/// ### Java method signature
/// ```java
/// public java.lang.Object[] java.util.HashSet.toArray()
/// ```
@JavaMethod
open func toArray() -> [JavaObject?]
/// Java method `iterator`.
///
/// ### Java method signature
/// ```java
/// public java.util.Iterator<E> java.util.HashSet.iterator()
/// ```
@JavaMethod
open func iterator() -> JavaIterator<E>!
/// Java method `contains`.
///
/// ### Java method signature
/// ```java
/// public boolean java.util.HashSet.contains(java.lang.Object)
/// ```
@JavaMethod
open func contains(_ arg0: JavaObject?) -> Bool
}
extension JavaClass {
/// Java method `newHashSet`.
///
/// ### Java method signature
/// ```java
/// public static <T> java.util.HashSet<T> java.util.HashSet.newHashSet(int)
/// ```
@JavaStaticMethod
public func newHashSet<E: AnyJavaObject, T: AnyJavaObject>(_ arg0: Int32) -> HashSet<T>! where ObjectType == HashSet<E>
}