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-PrimitiveIterator_OfDouble"))]
__jni_bindgen! {
    /// public interface [PrimitiveIterator.OfDouble](https://developer.android.com/reference/java/util/PrimitiveIterator.OfDouble.html)
    ///
    /// Required feature: "java-util-PrimitiveIterator_OfDouble"
    public interface PrimitiveIterator_OfDouble ("java/util/PrimitiveIterator$OfDouble") extends crate::java::lang::Object, implements crate::java::util::PrimitiveIterator {

        /// [nextDouble](https://developer.android.com/reference/java/util/PrimitiveIterator.OfDouble.html#nextDouble())
        pub fn nextDouble<'env>(&'env self) -> __jni_bindgen::std::result::Result<f64, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "java/util/PrimitiveIterator$OfDouble", java.flags == PUBLIC | ABSTRACT, .name == "nextDouble", .descriptor == "()D"
            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/PrimitiveIterator$OfDouble\0", "nextDouble\0", "()D\0");
                __jni_env.call_double_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [forEachRemaining](https://developer.android.com/reference/java/util/PrimitiveIterator.OfDouble.html#forEachRemaining(java.util.function.DoubleConsumer))
        ///
        /// Required features: "java-util-function-DoubleConsumer"
        #[cfg(any(feature = "all", all(feature = "java-util-function-DoubleConsumer")))]
        pub fn forEachRemaining_DoubleConsumer<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::util::function::DoubleConsumer>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "java/util/PrimitiveIterator$OfDouble", java.flags == PUBLIC, .name == "forEachRemaining", .descriptor == "(Ljava/util/function/DoubleConsumer;)V"
            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/PrimitiveIterator$OfDouble\0", "forEachRemaining\0", "(Ljava/util/function/DoubleConsumer;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [next](https://developer.android.com/reference/java/util/PrimitiveIterator.OfDouble.html#next())
        ///
        /// Required features: "java-lang-Double"
        #[cfg(any(feature = "all", all(feature = "java-lang-Double")))]
        pub fn next<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::Double>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "java/util/PrimitiveIterator$OfDouble", java.flags == PUBLIC, .name == "next", .descriptor == "()Ljava/lang/Double;"
            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/PrimitiveIterator$OfDouble\0", "next\0", "()Ljava/lang/Double;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [forEachRemaining](https://developer.android.com/reference/java/util/PrimitiveIterator.OfDouble.html#forEachRemaining(java.util.function.Consumer))
        ///
        /// Required features: "java-util-function-Consumer"
        #[cfg(any(feature = "all", all(feature = "java-util-function-Consumer")))]
        pub fn forEachRemaining_Consumer<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::util::function::Consumer>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "java/util/PrimitiveIterator$OfDouble", java.flags == PUBLIC, .name == "forEachRemaining", .descriptor == "(Ljava/util/function/Consumer;)V"
            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/PrimitiveIterator$OfDouble\0", "forEachRemaining\0", "(Ljava/util/function/Consumer;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}