// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "java-util-Locale"))]
__jni_bindgen! {
/// public final class [Locale](https://developer.android.com/reference/java/util/Locale.html)
///
/// Required feature: "java-util-Locale"
public final class Locale ("java/util/Locale") extends crate::java::lang::Object, implements crate::java::lang::Cloneable, crate::java::io::Serializable {
/// [Locale](https://developer.android.com/reference/java/util/Locale.html#Locale(java.lang.String))
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn new_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::Local<'env, crate::java::util::Locale>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/util/Locale", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/lang/String;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/util/Locale\0", "<init>\0", "(Ljava/lang/String;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [Locale](https://developer.android.com/reference/java/util/Locale.html#Locale(java.lang.String,%20java.lang.String))
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn new_String_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>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::java::util::Locale>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/util/Locale", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/lang/String;Ljava/lang/String;)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("java/util/Locale\0", "<init>\0", "(Ljava/lang/String;Ljava/lang/String;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [Locale](https://developer.android.com/reference/java/util/Locale.html#Locale(java.lang.String,%20java.lang.String,%20java.lang.String))
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn new_String_String_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>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::java::util::Locale>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/util/Locale", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V"
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())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/util/Locale\0", "<init>\0", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [clone](https://developer.android.com/reference/java/util/Locale.html#clone())
///
/// Required features: "java-lang-Object"
#[cfg(any(feature = "all", all(feature = "java-lang-Object")))]
pub fn clone<'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/Locale", java.flags == PUBLIC, .name == "clone", .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/Locale\0", "clone\0", "()Ljava/lang/Object;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [equals](https://developer.android.com/reference/java/util/Locale.html#equals(java.lang.Object))
///
/// Required features: "java-lang-Object"
#[cfg(any(feature = "all", all(feature = "java-lang-Object")))]
pub fn equals<'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<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/util/Locale", java.flags == PUBLIC, .name == "equals", .descriptor == "(Ljava/lang/Object;)Z"
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/Locale\0", "equals\0", "(Ljava/lang/Object;)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getAvailableLocales](https://developer.android.com/reference/java/util/Locale.html#getAvailableLocales())
///
/// Required features: "java-util-Locale"
#[cfg(any(feature = "all", all(feature = "java-util-Locale")))]
pub fn getAvailableLocales<'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::util::Locale, crate::java::lang::Throwable>>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/util/Locale", java.flags == PUBLIC | STATIC, .name == "getAvailableLocales", .descriptor == "()[Ljava/util/Locale;"
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("java/util/Locale\0", "getAvailableLocales\0", "()[Ljava/util/Locale;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getCountry](https://developer.android.com/reference/java/util/Locale.html#getCountry())
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn getCountry<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/util/Locale", java.flags == PUBLIC, .name == "getCountry", .descriptor == "()Ljava/lang/String;"
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/Locale\0", "getCountry\0", "()Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getDefault](https://developer.android.com/reference/java/util/Locale.html#getDefault())
///
/// Required features: "java-util-Locale"
#[cfg(any(feature = "all", all(feature = "java-util-Locale")))]
pub fn getDefault<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::Locale>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/util/Locale", java.flags == PUBLIC | STATIC, .name == "getDefault", .descriptor == "()Ljava/util/Locale;"
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("java/util/Locale\0", "getDefault\0", "()Ljava/util/Locale;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getDisplayCountry](https://developer.android.com/reference/java/util/Locale.html#getDisplayCountry())
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn getDisplayCountry<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/util/Locale", java.flags == PUBLIC | FINAL, .name == "getDisplayCountry", .descriptor == "()Ljava/lang/String;"
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/Locale\0", "getDisplayCountry\0", "()Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getDisplayCountry](https://developer.android.com/reference/java/util/Locale.html#getDisplayCountry(java.util.Locale))
///
/// Required features: "java-lang-String", "java-util-Locale"
#[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "java-util-Locale")))]
pub fn getDisplayCountry_Locale<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::util::Locale>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/util/Locale", java.flags == PUBLIC, .name == "getDisplayCountry", .descriptor == "(Ljava/util/Locale;)Ljava/lang/String;"
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/Locale\0", "getDisplayCountry\0", "(Ljava/util/Locale;)Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getDisplayLanguage](https://developer.android.com/reference/java/util/Locale.html#getDisplayLanguage())
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn getDisplayLanguage<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/util/Locale", java.flags == PUBLIC | FINAL, .name == "getDisplayLanguage", .descriptor == "()Ljava/lang/String;"
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/Locale\0", "getDisplayLanguage\0", "()Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getDisplayLanguage](https://developer.android.com/reference/java/util/Locale.html#getDisplayLanguage(java.util.Locale))
///
/// Required features: "java-lang-String", "java-util-Locale"
#[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "java-util-Locale")))]
pub fn getDisplayLanguage_Locale<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::util::Locale>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/util/Locale", java.flags == PUBLIC, .name == "getDisplayLanguage", .descriptor == "(Ljava/util/Locale;)Ljava/lang/String;"
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/Locale\0", "getDisplayLanguage\0", "(Ljava/util/Locale;)Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getDisplayName](https://developer.android.com/reference/java/util/Locale.html#getDisplayName())
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn getDisplayName<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/util/Locale", java.flags == PUBLIC | FINAL, .name == "getDisplayName", .descriptor == "()Ljava/lang/String;"
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/Locale\0", "getDisplayName\0", "()Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getDisplayName](https://developer.android.com/reference/java/util/Locale.html#getDisplayName(java.util.Locale))
///
/// Required features: "java-lang-String", "java-util-Locale"
#[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "java-util-Locale")))]
pub fn getDisplayName_Locale<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::util::Locale>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/util/Locale", java.flags == PUBLIC, .name == "getDisplayName", .descriptor == "(Ljava/util/Locale;)Ljava/lang/String;"
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/Locale\0", "getDisplayName\0", "(Ljava/util/Locale;)Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getDisplayVariant](https://developer.android.com/reference/java/util/Locale.html#getDisplayVariant())
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn getDisplayVariant<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/util/Locale", java.flags == PUBLIC | FINAL, .name == "getDisplayVariant", .descriptor == "()Ljava/lang/String;"
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/Locale\0", "getDisplayVariant\0", "()Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getDisplayVariant](https://developer.android.com/reference/java/util/Locale.html#getDisplayVariant(java.util.Locale))
///
/// Required features: "java-lang-String", "java-util-Locale"
#[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "java-util-Locale")))]
pub fn getDisplayVariant_Locale<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::util::Locale>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/util/Locale", java.flags == PUBLIC, .name == "getDisplayVariant", .descriptor == "(Ljava/util/Locale;)Ljava/lang/String;"
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/Locale\0", "getDisplayVariant\0", "(Ljava/util/Locale;)Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getISO3Country](https://developer.android.com/reference/java/util/Locale.html#getISO3Country())
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn getISO3Country<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/util/Locale", java.flags == PUBLIC, .name == "getISO3Country", .descriptor == "()Ljava/lang/String;"
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/Locale\0", "getISO3Country\0", "()Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getISO3Language](https://developer.android.com/reference/java/util/Locale.html#getISO3Language())
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn getISO3Language<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/util/Locale", java.flags == PUBLIC, .name == "getISO3Language", .descriptor == "()Ljava/lang/String;"
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/Locale\0", "getISO3Language\0", "()Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getISOCountries](https://developer.android.com/reference/java/util/Locale.html#getISOCountries())
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn getISOCountries<'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::lang::String, crate::java::lang::Throwable>>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/util/Locale", java.flags == PUBLIC | STATIC, .name == "getISOCountries", .descriptor == "()[Ljava/lang/String;"
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("java/util/Locale\0", "getISOCountries\0", "()[Ljava/lang/String;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getISOLanguages](https://developer.android.com/reference/java/util/Locale.html#getISOLanguages())
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn getISOLanguages<'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::lang::String, crate::java::lang::Throwable>>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/util/Locale", java.flags == PUBLIC | STATIC, .name == "getISOLanguages", .descriptor == "()[Ljava/lang/String;"
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("java/util/Locale\0", "getISOLanguages\0", "()[Ljava/lang/String;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getLanguage](https://developer.android.com/reference/java/util/Locale.html#getLanguage())
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn getLanguage<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/util/Locale", java.flags == PUBLIC, .name == "getLanguage", .descriptor == "()Ljava/lang/String;"
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/Locale\0", "getLanguage\0", "()Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getVariant](https://developer.android.com/reference/java/util/Locale.html#getVariant())
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn getVariant<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/util/Locale", java.flags == PUBLIC, .name == "getVariant", .descriptor == "()Ljava/lang/String;"
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/Locale\0", "getVariant\0", "()Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [hashCode](https://developer.android.com/reference/java/util/Locale.html#hashCode())
pub fn hashCode<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/util/Locale", java.flags == PUBLIC | SYNCRONIZED, .name == "hashCode", .descriptor == "()I"
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/Locale\0", "hashCode\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setDefault](https://developer.android.com/reference/java/util/Locale.html#setDefault(java.util.Locale))
///
/// Required features: "java-util-Locale"
#[cfg(any(feature = "all", all(feature = "java-util-Locale")))]
pub fn setDefault<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::util::Locale>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/util/Locale", java.flags == PUBLIC | STATIC | SYNCRONIZED, .name == "setDefault", .descriptor == "(Ljava/util/Locale;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("java/util/Locale\0", "setDefault\0", "(Ljava/util/Locale;)V\0");
__jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [toString](https://developer.android.com/reference/java/util/Locale.html#toString())
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn toString<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/util/Locale", java.flags == PUBLIC | FINAL, .name == "toString", .descriptor == "()Ljava/lang/String;"
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/Locale\0", "toString\0", "()Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// **get** public static final [CANADA](https://developer.android.com/reference/java/util/Locale.html#CANADA)
///
/// Required feature: "java-util-Locale"
#[cfg(any(feature = "all", feature = "java-util-Locale"))]
pub fn CANADA<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::Locale>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("java/util/Locale\0", "CANADA\0", "Ljava/util/Locale;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
/// **get** public static final [CANADA_FRENCH](https://developer.android.com/reference/java/util/Locale.html#CANADA_FRENCH)
///
/// Required feature: "java-util-Locale"
#[cfg(any(feature = "all", feature = "java-util-Locale"))]
pub fn CANADA_FRENCH<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::Locale>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("java/util/Locale\0", "CANADA_FRENCH\0", "Ljava/util/Locale;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
/// **get** public static final [CHINA](https://developer.android.com/reference/java/util/Locale.html#CHINA)
///
/// Required feature: "java-util-Locale"
#[cfg(any(feature = "all", feature = "java-util-Locale"))]
pub fn CHINA<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::Locale>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("java/util/Locale\0", "CHINA\0", "Ljava/util/Locale;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
/// **get** public static final [CHINESE](https://developer.android.com/reference/java/util/Locale.html#CHINESE)
///
/// Required feature: "java-util-Locale"
#[cfg(any(feature = "all", feature = "java-util-Locale"))]
pub fn CHINESE<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::Locale>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("java/util/Locale\0", "CHINESE\0", "Ljava/util/Locale;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
/// **get** public static final [ENGLISH](https://developer.android.com/reference/java/util/Locale.html#ENGLISH)
///
/// Required feature: "java-util-Locale"
#[cfg(any(feature = "all", feature = "java-util-Locale"))]
pub fn ENGLISH<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::Locale>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("java/util/Locale\0", "ENGLISH\0", "Ljava/util/Locale;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
/// **get** public static final [FRANCE](https://developer.android.com/reference/java/util/Locale.html#FRANCE)
///
/// Required feature: "java-util-Locale"
#[cfg(any(feature = "all", feature = "java-util-Locale"))]
pub fn FRANCE<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::Locale>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("java/util/Locale\0", "FRANCE\0", "Ljava/util/Locale;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
/// **get** public static final [FRENCH](https://developer.android.com/reference/java/util/Locale.html#FRENCH)
///
/// Required feature: "java-util-Locale"
#[cfg(any(feature = "all", feature = "java-util-Locale"))]
pub fn FRENCH<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::Locale>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("java/util/Locale\0", "FRENCH\0", "Ljava/util/Locale;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
/// **get** public static final [GERMAN](https://developer.android.com/reference/java/util/Locale.html#GERMAN)
///
/// Required feature: "java-util-Locale"
#[cfg(any(feature = "all", feature = "java-util-Locale"))]
pub fn GERMAN<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::Locale>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("java/util/Locale\0", "GERMAN\0", "Ljava/util/Locale;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
/// **get** public static final [GERMANY](https://developer.android.com/reference/java/util/Locale.html#GERMANY)
///
/// Required feature: "java-util-Locale"
#[cfg(any(feature = "all", feature = "java-util-Locale"))]
pub fn GERMANY<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::Locale>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("java/util/Locale\0", "GERMANY\0", "Ljava/util/Locale;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
/// **get** public static final [ITALIAN](https://developer.android.com/reference/java/util/Locale.html#ITALIAN)
///
/// Required feature: "java-util-Locale"
#[cfg(any(feature = "all", feature = "java-util-Locale"))]
pub fn ITALIAN<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::Locale>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("java/util/Locale\0", "ITALIAN\0", "Ljava/util/Locale;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
/// **get** public static final [ITALY](https://developer.android.com/reference/java/util/Locale.html#ITALY)
///
/// Required feature: "java-util-Locale"
#[cfg(any(feature = "all", feature = "java-util-Locale"))]
pub fn ITALY<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::Locale>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("java/util/Locale\0", "ITALY\0", "Ljava/util/Locale;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
/// **get** public static final [JAPAN](https://developer.android.com/reference/java/util/Locale.html#JAPAN)
///
/// Required feature: "java-util-Locale"
#[cfg(any(feature = "all", feature = "java-util-Locale"))]
pub fn JAPAN<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::Locale>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("java/util/Locale\0", "JAPAN\0", "Ljava/util/Locale;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
/// **get** public static final [JAPANESE](https://developer.android.com/reference/java/util/Locale.html#JAPANESE)
///
/// Required feature: "java-util-Locale"
#[cfg(any(feature = "all", feature = "java-util-Locale"))]
pub fn JAPANESE<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::Locale>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("java/util/Locale\0", "JAPANESE\0", "Ljava/util/Locale;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
/// **get** public static final [KOREA](https://developer.android.com/reference/java/util/Locale.html#KOREA)
///
/// Required feature: "java-util-Locale"
#[cfg(any(feature = "all", feature = "java-util-Locale"))]
pub fn KOREA<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::Locale>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("java/util/Locale\0", "KOREA\0", "Ljava/util/Locale;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
/// **get** public static final [KOREAN](https://developer.android.com/reference/java/util/Locale.html#KOREAN)
///
/// Required feature: "java-util-Locale"
#[cfg(any(feature = "all", feature = "java-util-Locale"))]
pub fn KOREAN<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::Locale>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("java/util/Locale\0", "KOREAN\0", "Ljava/util/Locale;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
/// **get** public static final [PRC](https://developer.android.com/reference/java/util/Locale.html#PRC)
///
/// Required feature: "java-util-Locale"
#[cfg(any(feature = "all", feature = "java-util-Locale"))]
pub fn PRC<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::Locale>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("java/util/Locale\0", "PRC\0", "Ljava/util/Locale;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
/// **get** public static final [ROOT](https://developer.android.com/reference/java/util/Locale.html#ROOT)
///
/// Required feature: "java-util-Locale"
#[cfg(any(feature = "all", feature = "java-util-Locale"))]
pub fn ROOT<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::Locale>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("java/util/Locale\0", "ROOT\0", "Ljava/util/Locale;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
/// **get** public static final [SIMPLIFIED_CHINESE](https://developer.android.com/reference/java/util/Locale.html#SIMPLIFIED_CHINESE)
///
/// Required feature: "java-util-Locale"
#[cfg(any(feature = "all", feature = "java-util-Locale"))]
pub fn SIMPLIFIED_CHINESE<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::Locale>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("java/util/Locale\0", "SIMPLIFIED_CHINESE\0", "Ljava/util/Locale;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
/// **get** public static final [TAIWAN](https://developer.android.com/reference/java/util/Locale.html#TAIWAN)
///
/// Required feature: "java-util-Locale"
#[cfg(any(feature = "all", feature = "java-util-Locale"))]
pub fn TAIWAN<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::Locale>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("java/util/Locale\0", "TAIWAN\0", "Ljava/util/Locale;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
/// **get** public static final [TRADITIONAL_CHINESE](https://developer.android.com/reference/java/util/Locale.html#TRADITIONAL_CHINESE)
///
/// Required feature: "java-util-Locale"
#[cfg(any(feature = "all", feature = "java-util-Locale"))]
pub fn TRADITIONAL_CHINESE<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::Locale>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("java/util/Locale\0", "TRADITIONAL_CHINESE\0", "Ljava/util/Locale;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
/// **get** public static final [UK](https://developer.android.com/reference/java/util/Locale.html#UK)
///
/// Required feature: "java-util-Locale"
#[cfg(any(feature = "all", feature = "java-util-Locale"))]
pub fn UK<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::Locale>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("java/util/Locale\0", "UK\0", "Ljava/util/Locale;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
/// **get** public static final [US](https://developer.android.com/reference/java/util/Locale.html#US)
///
/// Required feature: "java-util-Locale"
#[cfg(any(feature = "all", feature = "java-util-Locale"))]
pub fn US<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::Locale>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("java/util/Locale\0", "US\0", "Ljava/util/Locale;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
}
}