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
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


__jni_bindgen! {
    /// public class [Int64Ref](https://developer.android.com/reference/android/system/Int64Ref.html)
    ///
    /// Required feature: android-system-Int64Ref
    #[cfg(any(feature = "all", feature = "android-system-Int64Ref"))]
    public class Int64Ref extends crate::java::lang::Object {

        /// <init>
        pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i64) -> __jni_bindgen::Result<__jni_bindgen::Local<'env, crate::android::system::Int64Ref>> {
            // class.path == "android/system/Int64Ref", java.flags == PUBLIC, .name == "<init>", .descriptor == "(J)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/system/Int64Ref\0", "<init>\0", "(J)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// **get** public [value](https://developer.android.com/reference/android/system/Int64Ref.html#value)
        pub fn value<'env>(&'env self) -> i64 {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (class, field) = env.require_class_field("android/system/Int64Ref\0", "value\0", "J\0");
                env.get_long_field(class, field)
            }
        }

        /// **set** public [value](https://developer.android.com/reference/android/system/Int64Ref.html#value)
        pub fn set_value<'env>(&'env self, value: i64) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (class, field) = env.require_class_field("android/system/Int64Ref\0", "value\0", "J\0");
                env.set_long_field(class, field, value)
            }
        }
    }
}