FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
java_util/Sources/Future.swift at 1.0.10 · SwiftJava/java_util · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
SwiftJava
/
java_util
Public
Notifications
You must be signed in to change notification settings
Fork
5
Star
7
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
java_util
/
Sources
/
Future.swift
Copy path
More file actions
More file actions
Latest commit
History
History
History
121 lines (80 loc) · 5.73 KB
Breadcrumbs
java_util
/
Sources
/
Future.swift
Copy path
File metadata and controls
121 lines (80 loc) · 5.73 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
import
java_swift
import
java_lang
/// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' ///
/// JAVA_HOME: /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home ///
/// Tue Dec 20 11:29:48 GMT 2016 ///
/// interface java.util.concurrent.Future ///
public
protocol
Future
:
JavaProtocol
{
/// public abstract java.lang.Object java.util.concurrent.Future.get() throws java.lang.InterruptedException,java.util.concurrent.ExecutionException
func
get
(
)
throws
/* java.lang.InterruptedException, java.util.concurrent.ExecutionException */
->
java_lang
.
JavaObject
!
/// public abstract java.lang.Object java.util.concurrent.Future.get(long,java.util.concurrent.TimeUnit) throws java.lang.InterruptedException,java.util.concurrent.ExecutionException,java.util.concurrent.TimeoutException
func
get
(
arg0
:
Int64
,
arg1
:
TimeUnit
?
)
throws
/* java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException */
->
java_lang
.
JavaObject
!
func
get
(
_ _arg0
:
Int64
,
_ _arg1
:
TimeUnit
?
)
throws
/* java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException */
->
java_lang
.
JavaObject
!
/// public abstract boolean java.util.concurrent.Future.cancel(boolean)
func
cancel
(
arg0
:
Bool
)
->
Bool
func
cancel
(
_ _arg0
:
Bool
)
->
Bool
/// public abstract boolean java.util.concurrent.Future.isDone()
func
isDone
(
)
->
Bool
/// public abstract boolean java.util.concurrent.Future.isCancelled()
func
isCancelled
(
)
->
Bool
}
open
class
FutureForward
:
JNIObjectForward
,
Future
{
private
static
var
FutureJNIClass
:
jclass
?
/// public abstract java.lang.Object java.util.concurrent.Future.get() throws java.lang.InterruptedException,java.util.concurrent.ExecutionException
private
static
var
get_MethodID_6
:
jmethodID
?
open
func
get
(
)
throws
/* java.lang.InterruptedException, java.util.concurrent.ExecutionException */
->
java_lang
.
JavaObject
!
{
var
__args
=
[
jvalue
]
(
repeating
:
jvalue
(
)
,
count
:
1
)
var
__locals
=
[
jobject
]
(
)
let
__return
=
JNIMethod
.
CallObjectMethod
(
object
:
javaObject
,
methodName
:
"
get
"
,
methodSig
:
"
()Ljava/lang/Object;
"
,
methodCache
:
&
FutureForward
.
get_MethodID_6
,
args
:
&
__args
,
locals
:
&
__locals
)
defer
{
JNI
.
DeleteLocalRef
(
__return
)
}
if
let
throwable
=
JNI
.
ExceptionCheck
(
)
{
throw
java_lang
.
InterruptedException
(
javaObject
:
throwable
)
}
return
__return
!=
nil
?
java_lang
.
JavaObject
(
javaObject
:
__return
)
:
nil
}
/// public abstract java.lang.Object java.util.concurrent.Future.get(long,java.util.concurrent.TimeUnit) throws java.lang.InterruptedException,java.util.concurrent.ExecutionException,java.util.concurrent.TimeoutException
private
static
var
get_MethodID_7
:
jmethodID
?
open
func
get
(
arg0
:
Int64
,
arg1
:
TimeUnit
?
)
throws
/* java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException */
->
java_lang
.
JavaObject
!
{
var
__args
=
[
jvalue
]
(
repeating
:
jvalue
(
)
,
count
:
2
)
var
__locals
=
[
jobject
]
(
)
__args
[
0
]
=
JNIType
.
encode
(
value
:
arg0
,
locals
:
&
__locals
)
__args
[
1
]
=
JNIType
.
encode
(
value
:
arg1
,
locals
:
&
__locals
)
let
__return
=
JNIMethod
.
CallObjectMethod
(
object
:
javaObject
,
methodName
:
"
get
"
,
methodSig
:
"
(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;
"
,
methodCache
:
&
FutureForward
.
get_MethodID_7
,
args
:
&
__args
,
locals
:
&
__locals
)
defer
{
JNI
.
DeleteLocalRef
(
__return
)
}
if
let
throwable
=
JNI
.
ExceptionCheck
(
)
{
throw
java_lang
.
InterruptedException
(
javaObject
:
throwable
)
}
return
__return
!=
nil
?
java_lang
.
JavaObject
(
javaObject
:
__return
)
:
nil
}
open
func
get
(
_ _arg0
:
Int64
,
_ _arg1
:
TimeUnit
?
)
throws
/* java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException */
->
java_lang
.
JavaObject
!
{
return
try
get
(
arg0
:
_arg0
,
arg1
:
_arg1
)
}
/// public abstract boolean java.util.concurrent.Future.cancel(boolean)
private
static
var
cancel_MethodID_8
:
jmethodID
?
open
func
cancel
(
arg0
:
Bool
)
->
Bool
{
var
__args
=
[
jvalue
]
(
repeating
:
jvalue
(
)
,
count
:
1
)
var
__locals
=
[
jobject
]
(
)
__args
[
0
]
=
JNIType
.
encode
(
value
:
arg0
,
locals
:
&
__locals
)
let
__return
=
JNIMethod
.
CallBooleanMethod
(
object
:
javaObject
,
methodName
:
"
cancel
"
,
methodSig
:
"
(Z)Z
"
,
methodCache
:
&
FutureForward
.
cancel_MethodID_8
,
args
:
&
__args
,
locals
:
&
__locals
)
return
JNIType
.
decode
(
type
:
Bool
(
)
,
from
:
__return
)
}
open
func
cancel
(
_ _arg0
:
Bool
)
->
Bool
{
return
cancel
(
arg0
:
_arg0
)
}
/// public abstract boolean java.util.concurrent.Future.isDone()
private
static
var
isDone_MethodID_9
:
jmethodID
?
open
func
isDone
(
)
->
Bool
{
var
__args
=
[
jvalue
]
(
repeating
:
jvalue
(
)
,
count
:
1
)
var
__locals
=
[
jobject
]
(
)
let
__return
=
JNIMethod
.
CallBooleanMethod
(
object
:
javaObject
,
methodName
:
"
isDone
"
,
methodSig
:
"
()Z
"
,
methodCache
:
&
FutureForward
.
isDone_MethodID_9
,
args
:
&
__args
,
locals
:
&
__locals
)
return
JNIType
.
decode
(
type
:
Bool
(
)
,
from
:
__return
)
}
/// public abstract boolean java.util.concurrent.Future.isCancelled()
private
static
var
isCancelled_MethodID_10
:
jmethodID
?
open
func
isCancelled
(
)
->
Bool
{
var
__args
=
[
jvalue
]
(
repeating
:
jvalue
(
)
,
count
:
1
)
var
__locals
=
[
jobject
]
(
)
let
__return
=
JNIMethod
.
CallBooleanMethod
(
object
:
javaObject
,
methodName
:
"
isCancelled
"
,
methodSig
:
"
()Z
"
,
methodCache
:
&
FutureForward
.
isCancelled_MethodID_10
,
args
:
&
__args
,
locals
:
&
__locals
)
return
JNIType
.
decode
(
type
:
Bool
(
)
,
from
:
__return
)
}
}
Back
|
FazBrowse Home
|
New Git URL