forked from swiftlang/swift-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEnumeration.swift
More file actions
34 lines (30 loc) · 902 Bytes
/
Enumeration.swift
File metadata and controls
34 lines (30 loc) · 902 Bytes
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
// Auto-generated by Java-to-Swift wrapper generator.
import SwiftJavaJNICore
@JavaInterface("java.util.Enumeration")
public struct Enumeration<Enumeration_E: AnyJavaObject> {
public typealias E = Enumeration_E
/// Java method `asIterator`.
///
/// ### Java method signature
/// ```java
/// public default java.util.Iterator<E> java.util.Enumeration.asIterator()
/// ```
@JavaMethod
public func asIterator() -> JavaIterator<E>!
/// Java method `hasMoreElements`.
///
/// ### Java method signature
/// ```java
/// public abstract boolean java.util.Enumeration.hasMoreElements()
/// ```
@JavaMethod
public func hasMoreElements() -> Bool
/// Java method `nextElement`.
///
/// ### Java method signature
/// ```java
/// public abstract E java.util.Enumeration.nextElement()
/// ```
@JavaMethod(typeErasedResult: "E!")
public func nextElement() -> E!
}