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-math-RoundingMode"))]
__jni_bindgen! {
    /// public enum [RoundingMode](https://developer.android.com/reference/java/math/RoundingMode.html)
    ///
    /// Required feature: "java-math-RoundingMode"
    public enum RoundingMode ("java/math/RoundingMode") extends crate::java::lang::Enum {

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

        /// [valueOf](https://developer.android.com/reference/java/math/RoundingMode.html#valueOf(java.lang.String))
        ///
        /// Required features: "java-lang-String", "java-math-RoundingMode"
        #[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "java-math-RoundingMode")))]
        pub fn valueOf_String<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::math::RoundingMode>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "java/math/RoundingMode", java.flags == PUBLIC | STATIC, .name == "valueOf", .descriptor == "(Ljava/lang/String;)Ljava/math/RoundingMode;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("java/math/RoundingMode\0", "valueOf\0", "(Ljava/lang/String;)Ljava/math/RoundingMode;\0");
                __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [valueOf](https://developer.android.com/reference/java/math/RoundingMode.html#valueOf(int))
        ///
        /// Required features: "java-math-RoundingMode"
        #[cfg(any(feature = "all", all(feature = "java-math-RoundingMode")))]
        pub fn valueOf_int<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::math::RoundingMode>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "java/math/RoundingMode", java.flags == PUBLIC | STATIC, .name == "valueOf", .descriptor == "(I)Ljava/math/RoundingMode;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("java/math/RoundingMode\0", "valueOf\0", "(I)Ljava/math/RoundingMode;\0");
                __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// **get** public static final [CEILING](https://developer.android.com/reference/java/math/RoundingMode.html#CEILING)
        ///
        /// Required feature: "java-math-RoundingMode"
        #[cfg(any(feature = "all", feature = "java-math-RoundingMode"))]
        pub fn CEILING<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::math::RoundingMode>> {
            unsafe {
                let (__jni_class, __jni_field) = env.require_class_static_field("java/math/RoundingMode\0", "CEILING\0", "Ljava/math/RoundingMode;\0");
                env.get_static_object_field(__jni_class, __jni_field)
            }
        }

        /// **get** public static final [DOWN](https://developer.android.com/reference/java/math/RoundingMode.html#DOWN)
        ///
        /// Required feature: "java-math-RoundingMode"
        #[cfg(any(feature = "all", feature = "java-math-RoundingMode"))]
        pub fn DOWN<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::math::RoundingMode>> {
            unsafe {
                let (__jni_class, __jni_field) = env.require_class_static_field("java/math/RoundingMode\0", "DOWN\0", "Ljava/math/RoundingMode;\0");
                env.get_static_object_field(__jni_class, __jni_field)
            }
        }

        /// **get** public static final [FLOOR](https://developer.android.com/reference/java/math/RoundingMode.html#FLOOR)
        ///
        /// Required feature: "java-math-RoundingMode"
        #[cfg(any(feature = "all", feature = "java-math-RoundingMode"))]
        pub fn FLOOR<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::math::RoundingMode>> {
            unsafe {
                let (__jni_class, __jni_field) = env.require_class_static_field("java/math/RoundingMode\0", "FLOOR\0", "Ljava/math/RoundingMode;\0");
                env.get_static_object_field(__jni_class, __jni_field)
            }
        }

        /// **get** public static final [HALF_DOWN](https://developer.android.com/reference/java/math/RoundingMode.html#HALF_DOWN)
        ///
        /// Required feature: "java-math-RoundingMode"
        #[cfg(any(feature = "all", feature = "java-math-RoundingMode"))]
        pub fn HALF_DOWN<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::math::RoundingMode>> {
            unsafe {
                let (__jni_class, __jni_field) = env.require_class_static_field("java/math/RoundingMode\0", "HALF_DOWN\0", "Ljava/math/RoundingMode;\0");
                env.get_static_object_field(__jni_class, __jni_field)
            }
        }

        /// **get** public static final [HALF_EVEN](https://developer.android.com/reference/java/math/RoundingMode.html#HALF_EVEN)
        ///
        /// Required feature: "java-math-RoundingMode"
        #[cfg(any(feature = "all", feature = "java-math-RoundingMode"))]
        pub fn HALF_EVEN<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::math::RoundingMode>> {
            unsafe {
                let (__jni_class, __jni_field) = env.require_class_static_field("java/math/RoundingMode\0", "HALF_EVEN\0", "Ljava/math/RoundingMode;\0");
                env.get_static_object_field(__jni_class, __jni_field)
            }
        }

        /// **get** public static final [HALF_UP](https://developer.android.com/reference/java/math/RoundingMode.html#HALF_UP)
        ///
        /// Required feature: "java-math-RoundingMode"
        #[cfg(any(feature = "all", feature = "java-math-RoundingMode"))]
        pub fn HALF_UP<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::math::RoundingMode>> {
            unsafe {
                let (__jni_class, __jni_field) = env.require_class_static_field("java/math/RoundingMode\0", "HALF_UP\0", "Ljava/math/RoundingMode;\0");
                env.get_static_object_field(__jni_class, __jni_field)
            }
        }

        /// **get** public static final [UNNECESSARY](https://developer.android.com/reference/java/math/RoundingMode.html#UNNECESSARY)
        ///
        /// Required feature: "java-math-RoundingMode"
        #[cfg(any(feature = "all", feature = "java-math-RoundingMode"))]
        pub fn UNNECESSARY<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::math::RoundingMode>> {
            unsafe {
                let (__jni_class, __jni_field) = env.require_class_static_field("java/math/RoundingMode\0", "UNNECESSARY\0", "Ljava/math/RoundingMode;\0");
                env.get_static_object_field(__jni_class, __jni_field)
            }
        }

        /// **get** public static final [UP](https://developer.android.com/reference/java/math/RoundingMode.html#UP)
        ///
        /// Required feature: "java-math-RoundingMode"
        #[cfg(any(feature = "all", feature = "java-math-RoundingMode"))]
        pub fn UP<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::math::RoundingMode>> {
            unsafe {
                let (__jni_class, __jni_field) = env.require_class_static_field("java/math/RoundingMode\0", "UP\0", "Ljava/math/RoundingMode;\0");
                env.get_static_object_field(__jni_class, __jni_field)
            }
        }
    }
}