jni-android-sys 0.0.10

Autogenerated glue code for access Android JVM APIs from Rust
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


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

        /// [test](https://developer.android.com/reference/java/util/function/IntPredicate.html#test(int))
        pub fn test<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "java/util/function/IntPredicate", java.flags == PUBLIC | ABSTRACT, .name == "test", .descriptor == "(I)Z"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("java/util/function/IntPredicate\0", "test\0", "(I)Z\0");
                __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [and](https://developer.android.com/reference/java/util/function/IntPredicate.html#and(java.util.function.IntPredicate))
        ///
        /// Required features: "java-util-function-IntPredicate"
        #[cfg(any(feature = "all", all(feature = "java-util-function-IntPredicate")))]
        pub fn and<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::util::function::IntPredicate>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::function::IntPredicate>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "java/util/function/IntPredicate", java.flags == PUBLIC, .name == "and", .descriptor == "(Ljava/util/function/IntPredicate;)Ljava/util/function/IntPredicate;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("java/util/function/IntPredicate\0", "and\0", "(Ljava/util/function/IntPredicate;)Ljava/util/function/IntPredicate;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [negate](https://developer.android.com/reference/java/util/function/IntPredicate.html#negate())
        ///
        /// Required features: "java-util-function-IntPredicate"
        #[cfg(any(feature = "all", all(feature = "java-util-function-IntPredicate")))]
        pub fn negate<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::function::IntPredicate>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "java/util/function/IntPredicate", java.flags == PUBLIC, .name == "negate", .descriptor == "()Ljava/util/function/IntPredicate;"
            unsafe {
                let __jni_args = [];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("java/util/function/IntPredicate\0", "negate\0", "()Ljava/util/function/IntPredicate;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [or](https://developer.android.com/reference/java/util/function/IntPredicate.html#or(java.util.function.IntPredicate))
        ///
        /// Required features: "java-util-function-IntPredicate"
        #[cfg(any(feature = "all", all(feature = "java-util-function-IntPredicate")))]
        pub fn or<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::util::function::IntPredicate>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::function::IntPredicate>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "java/util/function/IntPredicate", java.flags == PUBLIC, .name == "or", .descriptor == "(Ljava/util/function/IntPredicate;)Ljava/util/function/IntPredicate;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("java/util/function/IntPredicate\0", "or\0", "(Ljava/util/function/IntPredicate;)Ljava/util/function/IntPredicate;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}