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

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

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

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

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

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

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