1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


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

        // // Not emitting: Non-public method
        // /// <init>
        // fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<__jni_bindgen::Local<'env, crate::java::util::ResourceBundle_Control>> {
        //     // class.path == "java/util/ResourceBundle$Control", java.flags == PROTECTED, .name == "<init>", .descriptor == "()V"
        //     unsafe {
        //         let __jni_args = [];
        //         let (__jni_class, __jni_method) = __jni_env.require_class_method("java/util/ResourceBundle$Control\0", "<init>\0", "()V\0");
        //         __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
        //     }
        // }

        /// [getControl](https://developer.android.com/reference/java/util/ResourceBundle.Control.html#getControl(java,%2520util,%2520List))
        ///
        /// Required features: "java-util-List", "java-util-ResourceBundle_Control"
        #[cfg(any(feature = "all", all(feature = "java-util-List", feature = "java-util-ResourceBundle_Control")))]
        pub fn get_control<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::util::List>>) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::ResourceBundle_Control>>> {
            // class.path == "java/util/ResourceBundle$Control", java.flags == PUBLIC | STATIC | FINAL, .name == "getControl", .descriptor == "(Ljava/util/List;)Ljava/util/ResourceBundle$Control;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("java/util/ResourceBundle$Control\0", "getControl\0", "(Ljava/util/List;)Ljava/util/ResourceBundle$Control;\0");
                __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getNoFallbackControl](https://developer.android.com/reference/java/util/ResourceBundle.Control.html#getNoFallbackControl(java,%2520util,%2520List))
        ///
        /// Required features: "java-util-List", "java-util-ResourceBundle_Control"
        #[cfg(any(feature = "all", all(feature = "java-util-List", feature = "java-util-ResourceBundle_Control")))]
        pub fn get_no_fallback_control<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::util::List>>) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::ResourceBundle_Control>>> {
            // class.path == "java/util/ResourceBundle$Control", java.flags == PUBLIC | STATIC | FINAL, .name == "getNoFallbackControl", .descriptor == "(Ljava/util/List;)Ljava/util/ResourceBundle$Control;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("java/util/ResourceBundle$Control\0", "getNoFallbackControl\0", "(Ljava/util/List;)Ljava/util/ResourceBundle$Control;\0");
                __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

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

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

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

        /// [newBundle](https://developer.android.com/reference/java/util/ResourceBundle.Control.html#newBundle(java,%2520lang,%2520String,%2520java,%2520util,%2520Locale,%2520java,%2520lang,%2520String,%2520java,%2520lang,%2520ClassLoader,%2520boolean))
        ///
        /// Required features: "java-lang-ClassLoader", "java-lang-String", "java-util-Locale", "java-util-ResourceBundle"
        #[cfg(any(feature = "all", all(feature = "java-lang-ClassLoader", feature = "java-lang-String", feature = "java-util-Locale", feature = "java-util-ResourceBundle")))]
        pub fn new_bundle<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::util::Locale>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg3: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::ClassLoader>>, arg4: bool) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::ResourceBundle>>> {
            // class.path == "java/util/ResourceBundle$Control", java.flags == PUBLIC, .name == "newBundle", .descriptor == "(Ljava/lang/String;Ljava/util/Locale;Ljava/lang/String;Ljava/lang/ClassLoader;Z)Ljava/util/ResourceBundle;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2.into()), __jni_bindgen::AsJValue::as_jvalue(&arg3.into()), __jni_bindgen::AsJValue::as_jvalue(&arg4)];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("java/util/ResourceBundle$Control\0", "newBundle\0", "(Ljava/lang/String;Ljava/util/Locale;Ljava/lang/String;Ljava/lang/ClassLoader;Z)Ljava/util/ResourceBundle;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getTimeToLive](https://developer.android.com/reference/java/util/ResourceBundle.Control.html#getTimeToLive(java,%2520lang,%2520String,%2520java,%2520util,%2520Locale))
        ///
        /// Required features: "java-lang-String", "java-util-Locale"
        #[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "java-util-Locale")))]
        pub fn get_time_to_live<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::util::Locale>>) -> __jni_bindgen::Result<i64> {
            // class.path == "java/util/ResourceBundle$Control", java.flags == PUBLIC, .name == "getTimeToLive", .descriptor == "(Ljava/lang/String;Ljava/util/Locale;)J"
            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/ResourceBundle$Control\0", "getTimeToLive\0", "(Ljava/lang/String;Ljava/util/Locale;)J\0");
                __jni_env.call_long_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [needsReload](https://developer.android.com/reference/java/util/ResourceBundle.Control.html#needsReload(java,%2520lang,%2520String,%2520java,%2520util,%2520Locale,%2520java,%2520lang,%2520String,%2520java,%2520lang,%2520ClassLoader,%2520java,%2520util,%2520ResourceBundle,%2520long))
        ///
        /// Required features: "java-lang-ClassLoader", "java-lang-String", "java-util-Locale", "java-util-ResourceBundle"
        #[cfg(any(feature = "all", all(feature = "java-lang-ClassLoader", feature = "java-lang-String", feature = "java-util-Locale", feature = "java-util-ResourceBundle")))]
        pub fn needs_reload<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::util::Locale>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg3: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::ClassLoader>>, arg4: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::util::ResourceBundle>>, arg5: i64) -> __jni_bindgen::Result<bool> {
            // class.path == "java/util/ResourceBundle$Control", java.flags == PUBLIC, .name == "needsReload", .descriptor == "(Ljava/lang/String;Ljava/util/Locale;Ljava/lang/String;Ljava/lang/ClassLoader;Ljava/util/ResourceBundle;J)Z"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2.into()), __jni_bindgen::AsJValue::as_jvalue(&arg3.into()), __jni_bindgen::AsJValue::as_jvalue(&arg4.into()), __jni_bindgen::AsJValue::as_jvalue(&arg5)];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("java/util/ResourceBundle$Control\0", "needsReload\0", "(Ljava/lang/String;Ljava/util/Locale;Ljava/lang/String;Ljava/lang/ClassLoader;Ljava/util/ResourceBundle;J)Z\0");
                __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

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

        // // Not emitting: Failed to mangle method name
        // // Not emitting: Non-public method
        // // Not emitting: Static class constructor - never needs to be called by Rust.
        // /// <clinit>
        // fn <clinit><'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<()> {
        //     // class.path == "java/util/ResourceBundle$Control", java.flags == STATIC, .name == "<clinit>", .descriptor == "()V"
        //     unsafe {
        //         let __jni_args = [];
        //         let (__jni_class, __jni_method) = __jni_env.require_class_static_method("java/util/ResourceBundle$Control\0", "<clinit>\0", "()V\0");
        //         __jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
        //     }
        // }

        // // Not emitting: Haven't yet implemented object field types
        // /// **get** public static final [FORMAT_CLASS](https://developer.android.com/reference/java/util/ResourceBundle.Control.html#FORMAT_CLASS)
        // ///
        // /// Required feature: java-util-List
        // #[cfg(any(feature = "all", feature = "java-util-List"))]
        // pub fn format_class<'env>(env: &'env __jni_bindgen::Env) -> java/util/List {
        //     unsafe {
        //         let (class, field) = env.require_class_static_field("java/util/ResourceBundle$Control\0", "FORMAT_CLASS\0", "Ljava/util/List;\0");
        //         env.get_static_object_field(class, field)
        //     }
        // }

        // // Not emitting: Haven't yet implemented object field types
        // /// **get** public static final [FORMAT_DEFAULT](https://developer.android.com/reference/java/util/ResourceBundle.Control.html#FORMAT_DEFAULT)
        // ///
        // /// Required feature: java-util-List
        // #[cfg(any(feature = "all", feature = "java-util-List"))]
        // pub fn format_default<'env>(env: &'env __jni_bindgen::Env) -> java/util/List {
        //     unsafe {
        //         let (class, field) = env.require_class_static_field("java/util/ResourceBundle$Control\0", "FORMAT_DEFAULT\0", "Ljava/util/List;\0");
        //         env.get_static_object_field(class, field)
        //     }
        // }

        // // Not emitting: Haven't yet implemented object field types
        // /// **get** public static final [FORMAT_PROPERTIES](https://developer.android.com/reference/java/util/ResourceBundle.Control.html#FORMAT_PROPERTIES)
        // ///
        // /// Required feature: java-util-List
        // #[cfg(any(feature = "all", feature = "java-util-List"))]
        // pub fn format_properties<'env>(env: &'env __jni_bindgen::Env) -> java/util/List {
        //     unsafe {
        //         let (class, field) = env.require_class_static_field("java/util/ResourceBundle$Control\0", "FORMAT_PROPERTIES\0", "Ljava/util/List;\0");
        //         env.get_static_object_field(class, field)
        //     }
        // }

        /// public static final [TTL_DONT_CACHE](https://developer.android.com/reference/java/util/ResourceBundle.Control.html#TTL_DONT_CACHE)
        pub const TTL_DONT_CACHE : i64 = -1i64;

        /// public static final [TTL_NO_EXPIRATION_CONTROL](https://developer.android.com/reference/java/util/ResourceBundle.Control.html#TTL_NO_EXPIRATION_CONTROL)
        pub const TTL_NO_EXPIRATION_CONTROL : i64 = -2i64;
    }
}