-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDoubleBinaryOperator.swift
More file actions
39 lines (23 loc) · 1.31 KB
/
DoubleBinaryOperator.swift
File metadata and controls
39 lines (23 loc) · 1.31 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
import java_swift
/// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' ///
/// interface java.util.function.DoubleBinaryOperator ///
public protocol DoubleBinaryOperator: JavaProtocol {
/// public abstract double java.util.function.DoubleBinaryOperator.applyAsDouble(double,double)
func applyAsDouble( left: Double, right: Double ) -> Double
}
open class DoubleBinaryOperatorForward: JNIObjectForward, DoubleBinaryOperator {
private static var DoubleBinaryOperatorJNIClass: jclass?
/// public abstract double java.util.function.DoubleBinaryOperator.applyAsDouble(double,double)
private static var applyAsDouble_MethodID_2: jmethodID?
open func applyAsDouble( left: Double, right: Double ) -> Double {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 2 )
__args[0] = jvalue( d: left )
__args[1] = jvalue( d: right )
let __return = JNIMethod.CallDoubleMethod( object: javaObject, methodName: "applyAsDouble", methodSig: "(DD)D", methodCache: &DoubleBinaryOperatorForward.applyAsDouble_MethodID_2, args: &__args, locals: &__locals )
return __return
}
open func applyAsDouble( _ _left: Double, _ _right: Double ) -> Double {
return applyAsDouble( left: _left, right: _right )
}
}