-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDoubleToIntFunction.swift
More file actions
38 lines (22 loc) · 1.16 KB
/
DoubleToIntFunction.swift
File metadata and controls
38 lines (22 loc) · 1.16 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.DoubleToIntFunction ///
public protocol DoubleToIntFunction: JavaProtocol {
/// public abstract int java.util.function.DoubleToIntFunction.applyAsInt(double)
func applyAsInt( value: Double ) -> Int
}
open class DoubleToIntFunctionForward: JNIObjectForward, DoubleToIntFunction {
private static var DoubleToIntFunctionJNIClass: jclass?
/// public abstract int java.util.function.DoubleToIntFunction.applyAsInt(double)
private static var applyAsInt_MethodID_2: jmethodID?
open func applyAsInt( value: Double ) -> Int {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = jvalue( d: value )
let __return = JNIMethod.CallIntMethod( object: javaObject, methodName: "applyAsInt", methodSig: "(D)I", methodCache: &DoubleToIntFunctionForward.applyAsInt_MethodID_2, args: &__args, locals: &__locals )
return Int(__return)
}
open func applyAsInt( _ _value: Double ) -> Int {
return applyAsInt( value: _value )
}
}