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 = "android-icu-util-CurrencyAmount"))]
__jni_bindgen! {
    /// public class [CurrencyAmount](https://developer.android.com/reference/android/icu/util/CurrencyAmount.html)
    ///
    /// Required feature: "android-icu-util-CurrencyAmount"
    public class CurrencyAmount ("android/icu/util/CurrencyAmount") extends crate::android::icu::util::Measure {

        /// [CurrencyAmount](https://developer.android.com/reference/android/icu/util/CurrencyAmount.html#CurrencyAmount(java.lang.Number,%20android.icu.util.Currency))
        ///
        /// Required features: "android-icu-util-Currency", "java-lang-Number"
        #[cfg(any(feature = "all", all(feature = "android-icu-util-Currency", feature = "java-lang-Number")))]
        pub fn new_Number_Currency<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::Number>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::icu::util::Currency>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::icu::util::CurrencyAmount>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/icu/util/CurrencyAmount", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/lang/Number;Landroid/icu/util/Currency;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/icu/util/CurrencyAmount\0", "<init>\0", "(Ljava/lang/Number;Landroid/icu/util/Currency;)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [CurrencyAmount](https://developer.android.com/reference/android/icu/util/CurrencyAmount.html#CurrencyAmount(double,%20android.icu.util.Currency))
        ///
        /// Required features: "android-icu-util-Currency"
        #[cfg(any(feature = "all", all(feature = "android-icu-util-Currency")))]
        pub fn new_double_Currency<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: f64, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::icu::util::Currency>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::icu::util::CurrencyAmount>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/icu/util/CurrencyAmount", java.flags == PUBLIC, .name == "<init>", .descriptor == "(DLandroid/icu/util/Currency;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/icu/util/CurrencyAmount\0", "<init>\0", "(DLandroid/icu/util/Currency;)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

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