-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDoubleToLongFunction.swift
More file actions
38 lines (22 loc) · 1.18 KB
/
DoubleToLongFunction.swift
File metadata and controls
38 lines (22 loc) · 1.18 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
import java_swift
/// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' ///
/// interface java.util.function.DoubleToLongFunction ///
public protocol DoubleToLongFunction: JavaProtocol {
/// public abstract long java.util.function.DoubleToLongFunction.applyAsLong(double)
func applyAsLong( value: Double ) -> Int64
}
open class DoubleToLongFunctionForward: JNIObjectForward, DoubleToLongFunction {
private static var DoubleToLongFunctionJNIClass: jclass?
/// public abstract long java.util.function.DoubleToLongFunction.applyAsLong(double)
private static var applyAsLong_MethodID_2: jmethodID?
open func applyAsLong( value: Double ) -> Int64 {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = jvalue( d: value )
let __return = JNIMethod.CallLongMethod( object: javaObject, methodName: "applyAsLong", methodSig: "(D)J", methodCache: &DoubleToLongFunctionForward.applyAsLong_MethodID_2, args: &__args, locals: &__locals )
return __return
}
open func applyAsLong( _ _value: Double ) -> Int64 {
return applyAsLong( value: _value )
}
}