// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-icu-text-Collator"))]
__jni_bindgen! {
/// public class [Collator](https://developer.android.com/reference/android/icu/text/Collator.html)
///
/// Required feature: "android-icu-text-Collator"
public class Collator ("android/icu/text/Collator") extends crate::java::lang::Object, implements crate::java::util::Comparator, crate::android::icu::util::Freezable, crate::java::lang::Cloneable {
/// [equals](https://developer.android.com/reference/android/icu/text/Collator.html#equals(java.lang.Object))
///
/// Required features: "java-lang-Object"
#[cfg(any(feature = "all", all(feature = "java-lang-Object")))]
pub fn equals_Object<'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 == "android/icu/text/Collator", 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("android/icu/text/Collator\0", "equals\0", "(Ljava/lang/Object;)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setStrength](https://developer.android.com/reference/android/icu/text/Collator.html#setStrength(int))
pub fn setStrength<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/icu/text/Collator", java.flags == PUBLIC, .name == "setStrength", .descriptor == "(I)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/icu/text/Collator\0", "setStrength\0", "(I)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setDecomposition](https://developer.android.com/reference/android/icu/text/Collator.html#setDecomposition(int))
pub fn setDecomposition<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/icu/text/Collator", java.flags == PUBLIC, .name == "setDecomposition", .descriptor == "(I)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/icu/text/Collator\0", "setDecomposition\0", "(I)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setReorderCodes](https://developer.android.com/reference/android/icu/text/Collator.html#setReorderCodes(int...))
pub fn setReorderCodes<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::IntArray>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/icu/text/Collator", java.flags == PUBLIC | VARARGS, .name == "setReorderCodes", .descriptor == "([I)V"
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("android/icu/text/Collator\0", "setReorderCodes\0", "([I)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getInstance](https://developer.android.com/reference/android/icu/text/Collator.html#getInstance())
///
/// Required features: "android-icu-text-Collator"
#[cfg(any(feature = "all", all(feature = "android-icu-text-Collator")))]
pub fn getInstance<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::icu::text::Collator>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/icu/text/Collator", java.flags == PUBLIC | STATIC | FINAL, .name == "getInstance", .descriptor == "()Landroid/icu/text/Collator;"
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/icu/text/Collator\0", "getInstance\0", "()Landroid/icu/text/Collator;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [clone](https://developer.android.com/reference/android/icu/text/Collator.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 == "android/icu/text/Collator", 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("android/icu/text/Collator\0", "clone\0", "()Ljava/lang/Object;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getInstance](https://developer.android.com/reference/android/icu/text/Collator.html#getInstance(android.icu.util.ULocale))
///
/// Required features: "android-icu-text-Collator", "android-icu-util-ULocale"
#[cfg(any(feature = "all", all(feature = "android-icu-text-Collator", feature = "android-icu-util-ULocale")))]
pub fn getInstance_ULocale<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::icu::util::ULocale>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::icu::text::Collator>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/icu/text/Collator", java.flags == PUBLIC | STATIC | FINAL, .name == "getInstance", .descriptor == "(Landroid/icu/util/ULocale;)Landroid/icu/text/Collator;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/icu/text/Collator\0", "getInstance\0", "(Landroid/icu/util/ULocale;)Landroid/icu/text/Collator;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getInstance](https://developer.android.com/reference/android/icu/text/Collator.html#getInstance(java.util.Locale))
///
/// Required features: "android-icu-text-Collator", "java-util-Locale"
#[cfg(any(feature = "all", all(feature = "android-icu-text-Collator", feature = "java-util-Locale")))]
pub fn getInstance_Locale<'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::std::option::Option<__jni_bindgen::Local<'env, crate::android::icu::text::Collator>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/icu/text/Collator", java.flags == PUBLIC | STATIC | FINAL, .name == "getInstance", .descriptor == "(Ljava/util/Locale;)Landroid/icu/text/Collator;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/icu/text/Collator\0", "getInstance\0", "(Ljava/util/Locale;)Landroid/icu/text/Collator;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getAvailableLocales](https://developer.android.com/reference/android/icu/text/Collator.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 == "android/icu/text/Collator", 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("android/icu/text/Collator\0", "getAvailableLocales\0", "()[Ljava/util/Locale;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getAvailableULocales](https://developer.android.com/reference/android/icu/text/Collator.html#getAvailableULocales())
///
/// Required features: "android-icu-util-ULocale"
#[cfg(any(feature = "all", all(feature = "android-icu-util-ULocale")))]
pub fn getAvailableULocales<'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::android::icu::util::ULocale, crate::java::lang::Throwable>>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/icu/text/Collator", java.flags == PUBLIC | STATIC | FINAL, .name == "getAvailableULocales", .descriptor == "()[Landroid/icu/util/ULocale;"
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/icu/text/Collator\0", "getAvailableULocales\0", "()[Landroid/icu/util/ULocale;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getKeywords](https://developer.android.com/reference/android/icu/text/Collator.html#getKeywords())
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn getKeywords<'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 == "android/icu/text/Collator", java.flags == PUBLIC | STATIC | FINAL, .name == "getKeywords", .descriptor == "()[Ljava/lang/String;"
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/icu/text/Collator\0", "getKeywords\0", "()[Ljava/lang/String;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getKeywordValues](https://developer.android.com/reference/android/icu/text/Collator.html#getKeywordValues(java.lang.String))
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn getKeywordValues<'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, __jni_bindgen::ObjectArray<crate::java::lang::String, crate::java::lang::Throwable>>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/icu/text/Collator", java.flags == PUBLIC | STATIC | FINAL, .name == "getKeywordValues", .descriptor == "(Ljava/lang/String;)[Ljava/lang/String;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/icu/text/Collator\0", "getKeywordValues\0", "(Ljava/lang/String;)[Ljava/lang/String;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getKeywordValuesForLocale](https://developer.android.com/reference/android/icu/text/Collator.html#getKeywordValuesForLocale(java.lang.String,%20android.icu.util.ULocale,%20boolean))
///
/// Required features: "android-icu-util-ULocale", "java-lang-String"
#[cfg(any(feature = "all", all(feature = "android-icu-util-ULocale", feature = "java-lang-String")))]
pub fn getKeywordValuesForLocale<'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::android::icu::util::ULocale>>, arg2: bool) -> __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 == "android/icu/text/Collator", java.flags == PUBLIC | STATIC | FINAL, .name == "getKeywordValuesForLocale", .descriptor == "(Ljava/lang/String;Landroid/icu/util/ULocale;Z)[Ljava/lang/String;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2)];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/icu/text/Collator\0", "getKeywordValuesForLocale\0", "(Ljava/lang/String;Landroid/icu/util/ULocale;Z)[Ljava/lang/String;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getFunctionalEquivalent](https://developer.android.com/reference/android/icu/text/Collator.html#getFunctionalEquivalent(java.lang.String,%20android.icu.util.ULocale,%20bool%5B%5D))
///
/// Required features: "android-icu-util-ULocale", "java-lang-String"
#[cfg(any(feature = "all", all(feature = "android-icu-util-ULocale", feature = "java-lang-String")))]
pub fn getFunctionalEquivalent_String_ULocale_boolean_array<'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::android::icu::util::ULocale>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::BooleanArray>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::icu::util::ULocale>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/icu/text/Collator", java.flags == PUBLIC | STATIC | FINAL, .name == "getFunctionalEquivalent", .descriptor == "(Ljava/lang/String;Landroid/icu/util/ULocale;[Z)Landroid/icu/util/ULocale;"
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_static_method("android/icu/text/Collator\0", "getFunctionalEquivalent\0", "(Ljava/lang/String;Landroid/icu/util/ULocale;[Z)Landroid/icu/util/ULocale;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getFunctionalEquivalent](https://developer.android.com/reference/android/icu/text/Collator.html#getFunctionalEquivalent(java.lang.String,%20android.icu.util.ULocale))
///
/// Required features: "android-icu-util-ULocale", "java-lang-String"
#[cfg(any(feature = "all", all(feature = "android-icu-util-ULocale", feature = "java-lang-String")))]
pub fn getFunctionalEquivalent_String_ULocale<'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::android::icu::util::ULocale>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::icu::util::ULocale>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/icu/text/Collator", java.flags == PUBLIC | STATIC | FINAL, .name == "getFunctionalEquivalent", .descriptor == "(Ljava/lang/String;Landroid/icu/util/ULocale;)Landroid/icu/util/ULocale;"
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_static_method("android/icu/text/Collator\0", "getFunctionalEquivalent\0", "(Ljava/lang/String;Landroid/icu/util/ULocale;)Landroid/icu/util/ULocale;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getDisplayName](https://developer.android.com/reference/android/icu/text/Collator.html#getDisplayName(java.util.Locale,%20java.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_Locale<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::util::Locale>>, arg1: 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 == "android/icu/text/Collator", java.flags == PUBLIC | STATIC, .name == "getDisplayName", .descriptor == "(Ljava/util/Locale;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_class, __jni_method) = __jni_env.require_class_static_method("android/icu/text/Collator\0", "getDisplayName\0", "(Ljava/util/Locale;Ljava/util/Locale;)Ljava/lang/String;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getDisplayName](https://developer.android.com/reference/android/icu/text/Collator.html#getDisplayName(android.icu.util.ULocale,%20android.icu.util.ULocale))
///
/// Required features: "android-icu-util-ULocale", "java-lang-String"
#[cfg(any(feature = "all", all(feature = "android-icu-util-ULocale", feature = "java-lang-String")))]
pub fn getDisplayName_ULocale_ULocale<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::icu::util::ULocale>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::icu::util::ULocale>>) -> __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 == "android/icu/text/Collator", java.flags == PUBLIC | STATIC, .name == "getDisplayName", .descriptor == "(Landroid/icu/util/ULocale;Landroid/icu/util/ULocale;)Ljava/lang/String;"
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_static_method("android/icu/text/Collator\0", "getDisplayName\0", "(Landroid/icu/util/ULocale;Landroid/icu/util/ULocale;)Ljava/lang/String;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getDisplayName](https://developer.android.com/reference/android/icu/text/Collator.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>(__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::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/icu/text/Collator", java.flags == PUBLIC | STATIC, .name == "getDisplayName", .descriptor == "(Ljava/util/Locale;)Ljava/lang/String;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/icu/text/Collator\0", "getDisplayName\0", "(Ljava/util/Locale;)Ljava/lang/String;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getDisplayName](https://developer.android.com/reference/android/icu/text/Collator.html#getDisplayName(android.icu.util.ULocale))
///
/// Required features: "android-icu-util-ULocale", "java-lang-String"
#[cfg(any(feature = "all", all(feature = "android-icu-util-ULocale", feature = "java-lang-String")))]
pub fn getDisplayName_ULocale<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::icu::util::ULocale>>) -> __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 == "android/icu/text/Collator", java.flags == PUBLIC | STATIC, .name == "getDisplayName", .descriptor == "(Landroid/icu/util/ULocale;)Ljava/lang/String;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/icu/text/Collator\0", "getDisplayName\0", "(Landroid/icu/util/ULocale;)Ljava/lang/String;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getStrength](https://developer.android.com/reference/android/icu/text/Collator.html#getStrength())
pub fn getStrength<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/icu/text/Collator", java.flags == PUBLIC, .name == "getStrength", .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("android/icu/text/Collator\0", "getStrength\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getDecomposition](https://developer.android.com/reference/android/icu/text/Collator.html#getDecomposition())
pub fn getDecomposition<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/icu/text/Collator", java.flags == PUBLIC, .name == "getDecomposition", .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("android/icu/text/Collator\0", "getDecomposition\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [equals](https://developer.android.com/reference/android/icu/text/Collator.html#equals(java.lang.String,%20java.lang.String))
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn equals_String_String<'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::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/icu/text/Collator", java.flags == PUBLIC, .name == "equals", .descriptor == "(Ljava/lang/String;Ljava/lang/String;)Z"
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("android/icu/text/Collator\0", "equals\0", "(Ljava/lang/String;Ljava/lang/String;)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getTailoredSet](https://developer.android.com/reference/android/icu/text/Collator.html#getTailoredSet())
///
/// Required features: "android-icu-text-UnicodeSet"
#[cfg(any(feature = "all", all(feature = "android-icu-text-UnicodeSet")))]
pub fn getTailoredSet<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::icu::text::UnicodeSet>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/icu/text/Collator", java.flags == PUBLIC, .name == "getTailoredSet", .descriptor == "()Landroid/icu/text/UnicodeSet;"
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/text/Collator\0", "getTailoredSet\0", "()Landroid/icu/text/UnicodeSet;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [compare](https://developer.android.com/reference/android/icu/text/Collator.html#compare(java.lang.String,%20java.lang.String))
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn compare_String_String<'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::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/icu/text/Collator", java.flags == PUBLIC | ABSTRACT, .name == "compare", .descriptor == "(Ljava/lang/String;Ljava/lang/String;)I"
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("android/icu/text/Collator\0", "compare\0", "(Ljava/lang/String;Ljava/lang/String;)I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [compare](https://developer.android.com/reference/android/icu/text/Collator.html#compare(java.lang.Object,%20java.lang.Object))
///
/// Required features: "java-lang-Object"
#[cfg(any(feature = "all", all(feature = "java-lang-Object")))]
pub fn compare_Object_Object<'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<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/icu/text/Collator", java.flags == PUBLIC, .name == "compare", .descriptor == "(Ljava/lang/Object;Ljava/lang/Object;)I"
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("android/icu/text/Collator\0", "compare\0", "(Ljava/lang/Object;Ljava/lang/Object;)I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getCollationKey](https://developer.android.com/reference/android/icu/text/Collator.html#getCollationKey(java.lang.String))
///
/// Required features: "android-icu-text-CollationKey", "java-lang-String"
#[cfg(any(feature = "all", all(feature = "android-icu-text-CollationKey", feature = "java-lang-String")))]
pub fn getCollationKey<'env>(&'env self, 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::android::icu::text::CollationKey>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/icu/text/Collator", java.flags == PUBLIC | ABSTRACT, .name == "getCollationKey", .descriptor == "(Ljava/lang/String;)Landroid/icu/text/CollationKey;"
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("android/icu/text/Collator\0", "getCollationKey\0", "(Ljava/lang/String;)Landroid/icu/text/CollationKey;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setMaxVariable](https://developer.android.com/reference/android/icu/text/Collator.html#setMaxVariable(int))
///
/// Required features: "android-icu-text-Collator"
#[cfg(any(feature = "all", all(feature = "android-icu-text-Collator")))]
pub fn setMaxVariable<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::icu::text::Collator>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/icu/text/Collator", java.flags == PUBLIC, .name == "setMaxVariable", .descriptor == "(I)Landroid/icu/text/Collator;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/icu/text/Collator\0", "setMaxVariable\0", "(I)Landroid/icu/text/Collator;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getMaxVariable](https://developer.android.com/reference/android/icu/text/Collator.html#getMaxVariable())
pub fn getMaxVariable<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/icu/text/Collator", java.flags == PUBLIC, .name == "getMaxVariable", .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("android/icu/text/Collator\0", "getMaxVariable\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getVariableTop](https://developer.android.com/reference/android/icu/text/Collator.html#getVariableTop())
pub fn getVariableTop<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/icu/text/Collator", java.flags == PUBLIC | ABSTRACT, .name == "getVariableTop", .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("android/icu/text/Collator\0", "getVariableTop\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getVersion](https://developer.android.com/reference/android/icu/text/Collator.html#getVersion())
///
/// Required features: "android-icu-util-VersionInfo"
#[cfg(any(feature = "all", all(feature = "android-icu-util-VersionInfo")))]
pub fn getVersion<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::icu::util::VersionInfo>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/icu/text/Collator", java.flags == PUBLIC | ABSTRACT, .name == "getVersion", .descriptor == "()Landroid/icu/util/VersionInfo;"
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/text/Collator\0", "getVersion\0", "()Landroid/icu/util/VersionInfo;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getUCAVersion](https://developer.android.com/reference/android/icu/text/Collator.html#getUCAVersion())
///
/// Required features: "android-icu-util-VersionInfo"
#[cfg(any(feature = "all", all(feature = "android-icu-util-VersionInfo")))]
pub fn getUCAVersion<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::icu::util::VersionInfo>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/icu/text/Collator", java.flags == PUBLIC | ABSTRACT, .name == "getUCAVersion", .descriptor == "()Landroid/icu/util/VersionInfo;"
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/text/Collator\0", "getUCAVersion\0", "()Landroid/icu/util/VersionInfo;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getReorderCodes](https://developer.android.com/reference/android/icu/text/Collator.html#getReorderCodes())
pub fn getReorderCodes<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::IntArray>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/icu/text/Collator", java.flags == PUBLIC, .name == "getReorderCodes", .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("android/icu/text/Collator\0", "getReorderCodes\0", "()[I\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getEquivalentReorderCodes](https://developer.android.com/reference/android/icu/text/Collator.html#getEquivalentReorderCodes(int))
pub fn getEquivalentReorderCodes<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::IntArray>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/icu/text/Collator", java.flags == PUBLIC | STATIC, .name == "getEquivalentReorderCodes", .descriptor == "(I)[I"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/icu/text/Collator\0", "getEquivalentReorderCodes\0", "(I)[I\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [isFrozen](https://developer.android.com/reference/android/icu/text/Collator.html#isFrozen())
pub fn isFrozen<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/icu/text/Collator", java.flags == PUBLIC, .name == "isFrozen", .descriptor == "()Z"
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/text/Collator\0", "isFrozen\0", "()Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [freeze](https://developer.android.com/reference/android/icu/text/Collator.html#freeze())
///
/// Required features: "android-icu-text-Collator"
#[cfg(any(feature = "all", all(feature = "android-icu-text-Collator")))]
pub fn freeze<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::icu::text::Collator>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/icu/text/Collator", java.flags == PUBLIC, .name == "freeze", .descriptor == "()Landroid/icu/text/Collator;"
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/text/Collator\0", "freeze\0", "()Landroid/icu/text/Collator;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [cloneAsThawed](https://developer.android.com/reference/android/icu/text/Collator.html#cloneAsThawed())
///
/// Required features: "android-icu-text-Collator"
#[cfg(any(feature = "all", all(feature = "android-icu-text-Collator")))]
pub fn cloneAsThawed<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::icu::text::Collator>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/icu/text/Collator", java.flags == PUBLIC, .name == "cloneAsThawed", .descriptor == "()Landroid/icu/text/Collator;"
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/text/Collator\0", "cloneAsThawed\0", "()Landroid/icu/text/Collator;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// public static final [CANONICAL_DECOMPOSITION](https://developer.android.com/reference/android/icu/text/Collator.html#CANONICAL_DECOMPOSITION)
pub const CANONICAL_DECOMPOSITION : i32 = 17;
/// public static final [FULL_DECOMPOSITION](https://developer.android.com/reference/android/icu/text/Collator.html#FULL_DECOMPOSITION)
pub const FULL_DECOMPOSITION : i32 = 15;
/// public static final [IDENTICAL](https://developer.android.com/reference/android/icu/text/Collator.html#IDENTICAL)
pub const IDENTICAL : i32 = 15;
/// public static final [NO_DECOMPOSITION](https://developer.android.com/reference/android/icu/text/Collator.html#NO_DECOMPOSITION)
pub const NO_DECOMPOSITION : i32 = 16;
/// public static final [PRIMARY](https://developer.android.com/reference/android/icu/text/Collator.html#PRIMARY)
pub const PRIMARY : i32 = 0;
/// public static final [QUATERNARY](https://developer.android.com/reference/android/icu/text/Collator.html#QUATERNARY)
pub const QUATERNARY : i32 = 3;
/// public static final [SECONDARY](https://developer.android.com/reference/android/icu/text/Collator.html#SECONDARY)
pub const SECONDARY : i32 = 1;
/// public static final [TERTIARY](https://developer.android.com/reference/android/icu/text/Collator.html#TERTIARY)
pub const TERTIARY : i32 = 2;
}
}