1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


__jni_bindgen! {
    /// public interface [UnaryOperator](https://developer.android.com/reference/java/util/function/UnaryOperator.html)
    ///
    /// Required feature: java-util-function-UnaryOperator
    #[cfg(any(feature = "all", feature = "java-util-function-UnaryOperator"))]
    public interface UnaryOperator extends crate::java::lang::Object, implements crate::java::util::function::Function {

        /// [identity](https://developer.android.com/reference/java/util/function/UnaryOperator.html#identity())
        ///
        /// Required features: "java-util-function-UnaryOperator"
        #[cfg(any(feature = "all", all(feature = "java-util-function-UnaryOperator")))]
        pub fn identity<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::function::UnaryOperator>>> {
            // class.path == "java/util/function/UnaryOperator", java.flags == PUBLIC | STATIC, .name == "identity", .descriptor == "()Ljava/util/function/UnaryOperator;"
            unsafe {
                let __jni_args = [];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("java/util/function/UnaryOperator\0", "identity\0", "()Ljava/util/function/UnaryOperator;\0");
                __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}