[]Struct jni_android_sys::android::icu::text::NumberFormat

#[repr(transparent)]
pub struct NumberFormat(_);

public class NumberFormat

Required feature: "android-icu-text-NumberFormat"

Methods

impl NumberFormat

pub fn new<'env>(
    __jni_env: &'env Env
) -> Result<Local<'env, NumberFormat>, Local<'env, Throwable>>
[src]

pub fn format_Object_StringBuffer_FieldPosition<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>,
    arg1: impl Into<Option<&'env StringBuffer>>,
    arg2: impl Into<Option<&'env FieldPosition>>
) -> Result<Option<Local<'env, StringBuffer>>, Local<'env, Throwable>>
[src]

format

Required features: "java-lang-Object", "java-lang-StringBuffer", "java-text-FieldPosition"

pub fn parseObject<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env ParsePosition>>
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
[src]

parseObject

Required features: "java-lang-Object", "java-lang-String", "java-text-ParsePosition"

pub fn format_double<'env>(
    &'env self,
    arg0: f64
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

format

Required features: "java-lang-String"

pub fn format_long<'env>(
    &'env self,
    arg0: i64
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

format

Required features: "java-lang-String"

pub fn format_BigInteger<'env>(
    &'env self,
    arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

format

Required features: "java-lang-String", "java-math-BigInteger"

pub fn format_javaBigDecimal<'env>(
    &'env self,
    arg0: impl Into<Option<&'env BigDecimal>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

format

Required features: "java-lang-String", "java-math-BigDecimal"

pub fn format_BigDecimal<'env>(
    &'env self,
    arg0: impl Into<Option<&'env BigDecimal>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

format

Required features: "android-icu-math-BigDecimal", "java-lang-String"

pub fn format_CurrencyAmount<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CurrencyAmount>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

format

Required features: "android-icu-util-CurrencyAmount", "java-lang-String"

pub fn format_double_StringBuffer_FieldPosition<'env>(
    &'env self,
    arg0: f64,
    arg1: impl Into<Option<&'env StringBuffer>>,
    arg2: impl Into<Option<&'env FieldPosition>>
) -> Result<Option<Local<'env, StringBuffer>>, Local<'env, Throwable>>
[src]

format

Required features: "java-lang-StringBuffer", "java-text-FieldPosition"

pub fn format_long_StringBuffer_FieldPosition<'env>(
    &'env self,
    arg0: i64,
    arg1: impl Into<Option<&'env StringBuffer>>,
    arg2: impl Into<Option<&'env FieldPosition>>
) -> Result<Option<Local<'env, StringBuffer>>, Local<'env, Throwable>>
[src]

format

Required features: "java-lang-StringBuffer", "java-text-FieldPosition"

pub fn format_BigInteger_StringBuffer_FieldPosition<'env>(
    &'env self,
    arg0: impl Into<Option<&'env BigInteger>>,
    arg1: impl Into<Option<&'env StringBuffer>>,
    arg2: impl Into<Option<&'env FieldPosition>>
) -> Result<Option<Local<'env, StringBuffer>>, Local<'env, Throwable>>
[src]

format

Required features: "java-lang-StringBuffer", "java-math-BigInteger", "java-text-FieldPosition"

pub fn format_javaBigDecimal_StringBuffer_FieldPosition<'env>(
    &'env self,
    arg0: impl Into<Option<&'env BigDecimal>>,
    arg1: impl Into<Option<&'env StringBuffer>>,
    arg2: impl Into<Option<&'env FieldPosition>>
) -> Result<Option<Local<'env, StringBuffer>>, Local<'env, Throwable>>
[src]

format

Required features: "java-lang-StringBuffer", "java-math-BigDecimal", "java-text-FieldPosition"

pub fn format_BigDecimal_StringBuffer_FieldPosition<'env>(
    &'env self,
    arg0: impl Into<Option<&'env BigDecimal>>,
    arg1: impl Into<Option<&'env StringBuffer>>,
    arg2: impl Into<Option<&'env FieldPosition>>
) -> Result<Option<Local<'env, StringBuffer>>, Local<'env, Throwable>>
[src]

format

Required features: "android-icu-math-BigDecimal", "java-lang-StringBuffer", "java-text-FieldPosition"

pub fn format_CurrencyAmount_StringBuffer_FieldPosition<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CurrencyAmount>>,
    arg1: impl Into<Option<&'env StringBuffer>>,
    arg2: impl Into<Option<&'env FieldPosition>>
) -> Result<Option<Local<'env, StringBuffer>>, Local<'env, Throwable>>
[src]

format

Required features: "android-icu-util-CurrencyAmount", "java-lang-StringBuffer", "java-text-FieldPosition"

pub fn parse_String_ParsePosition<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env ParsePosition>>
) -> Result<Option<Local<'env, Number>>, Local<'env, Throwable>>
[src]

parse

Required features: "java-lang-Number", "java-lang-String", "java-text-ParsePosition"

pub fn parse_String<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Number>>, Local<'env, Throwable>>
[src]

parse

Required features: "java-lang-Number", "java-lang-String"

pub fn parseCurrency<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CharSequence>>,
    arg1: impl Into<Option<&'env ParsePosition>>
) -> Result<Option<Local<'env, CurrencyAmount>>, Local<'env, Throwable>>
[src]

parseCurrency

Required features: "android-icu-util-CurrencyAmount", "java-lang-CharSequence", "java-text-ParsePosition"

pub fn isParseIntegerOnly<'env>(
    &'env self
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn setParseIntegerOnly<'env>(
    &'env self,
    arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn setParseStrict<'env>(
    &'env self,
    arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn isParseStrict<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

pub fn setContext<'env>(
    &'env self,
    arg0: impl Into<Option<&'env DisplayContext>>
) -> Result<(), Local<'env, Throwable>>
[src]

setContext

Required features: "android-icu-text-DisplayContext"

pub fn getContext<'env>(
    &'env self,
    arg0: impl Into<Option<&'env DisplayContext_Type>>
) -> Result<Option<Local<'env, DisplayContext>>, Local<'env, Throwable>>
[src]

getContext

Required features: "android-icu-text-DisplayContext", "android-icu-text-DisplayContext_Type"

pub fn getInstance<'env>(
    __jni_env: &'env Env
) -> Result<Option<Local<'env, NumberFormat>>, Local<'env, Throwable>>
[src]

getInstance

Required features: "android-icu-text-NumberFormat"

pub fn getInstance_Locale<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Locale>>
) -> Result<Option<Local<'env, NumberFormat>>, Local<'env, Throwable>>
[src]

getInstance

Required features: "android-icu-text-NumberFormat", "java-util-Locale"

pub fn getInstance_ULocale<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env ULocale>>
) -> Result<Option<Local<'env, NumberFormat>>, Local<'env, Throwable>>
[src]

getInstance

Required features: "android-icu-text-NumberFormat", "android-icu-util-ULocale"

pub fn getInstance_int<'env>(
    __jni_env: &'env Env,
    arg0: i32
) -> Result<Option<Local<'env, NumberFormat>>, Local<'env, Throwable>>
[src]

getInstance

Required features: "android-icu-text-NumberFormat"

pub fn getInstance_Locale_int<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Locale>>,
    arg1: i32
) -> Result<Option<Local<'env, NumberFormat>>, Local<'env, Throwable>>
[src]

getInstance

Required features: "android-icu-text-NumberFormat", "java-util-Locale"

pub fn getNumberInstance<'env>(
    __jni_env: &'env Env
) -> Result<Option<Local<'env, NumberFormat>>, Local<'env, Throwable>>
[src]

getNumberInstance

Required features: "android-icu-text-NumberFormat"

pub fn getNumberInstance_Locale<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Locale>>
) -> Result<Option<Local<'env, NumberFormat>>, Local<'env, Throwable>>
[src]

getNumberInstance

Required features: "android-icu-text-NumberFormat", "java-util-Locale"

pub fn getNumberInstance_ULocale<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env ULocale>>
) -> Result<Option<Local<'env, NumberFormat>>, Local<'env, Throwable>>
[src]

getNumberInstance

Required features: "android-icu-text-NumberFormat", "android-icu-util-ULocale"

pub fn getIntegerInstance<'env>(
    __jni_env: &'env Env
) -> Result<Option<Local<'env, NumberFormat>>, Local<'env, Throwable>>
[src]

getIntegerInstance

Required features: "android-icu-text-NumberFormat"

pub fn getIntegerInstance_Locale<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Locale>>
) -> Result<Option<Local<'env, NumberFormat>>, Local<'env, Throwable>>
[src]

getIntegerInstance

Required features: "android-icu-text-NumberFormat", "java-util-Locale"

pub fn getIntegerInstance_ULocale<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env ULocale>>
) -> Result<Option<Local<'env, NumberFormat>>, Local<'env, Throwable>>
[src]

getIntegerInstance

Required features: "android-icu-text-NumberFormat", "android-icu-util-ULocale"

pub fn getCurrencyInstance<'env>(
    __jni_env: &'env Env
) -> Result<Option<Local<'env, NumberFormat>>, Local<'env, Throwable>>
[src]

getCurrencyInstance

Required features: "android-icu-text-NumberFormat"

pub fn getCurrencyInstance_Locale<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Locale>>
) -> Result<Option<Local<'env, NumberFormat>>, Local<'env, Throwable>>
[src]

getCurrencyInstance

Required features: "android-icu-text-NumberFormat", "java-util-Locale"

pub fn getCurrencyInstance_ULocale<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env ULocale>>
) -> Result<Option<Local<'env, NumberFormat>>, Local<'env, Throwable>>
[src]

getCurrencyInstance

Required features: "android-icu-text-NumberFormat", "android-icu-util-ULocale"

pub fn getPercentInstance<'env>(
    __jni_env: &'env Env
) -> Result<Option<Local<'env, NumberFormat>>, Local<'env, Throwable>>
[src]

getPercentInstance

Required features: "android-icu-text-NumberFormat"

pub fn getPercentInstance_Locale<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Locale>>
) -> Result<Option<Local<'env, NumberFormat>>, Local<'env, Throwable>>
[src]

getPercentInstance

Required features: "android-icu-text-NumberFormat", "java-util-Locale"

pub fn getPercentInstance_ULocale<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env ULocale>>
) -> Result<Option<Local<'env, NumberFormat>>, Local<'env, Throwable>>
[src]

getPercentInstance

Required features: "android-icu-text-NumberFormat", "android-icu-util-ULocale"

pub fn getScientificInstance<'env>(
    __jni_env: &'env Env
) -> Result<Option<Local<'env, NumberFormat>>, Local<'env, Throwable>>
[src]

getScientificInstance

Required features: "android-icu-text-NumberFormat"

pub fn getScientificInstance_Locale<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Locale>>
) -> Result<Option<Local<'env, NumberFormat>>, Local<'env, Throwable>>
[src]

getScientificInstance

Required features: "android-icu-text-NumberFormat", "java-util-Locale"

pub fn getScientificInstance_ULocale<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env ULocale>>
) -> Result<Option<Local<'env, NumberFormat>>, Local<'env, Throwable>>
[src]

getScientificInstance

Required features: "android-icu-text-NumberFormat", "android-icu-util-ULocale"

pub fn getAvailableLocales<'env>(
    __jni_env: &'env Env
) -> Result<Option<Local<'env, ObjectArray<Locale, Throwable>>>, Local<'env, Throwable>>
[src]

getAvailableLocales

Required features: "java-util-Locale"

pub fn hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn equals<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
[src]

equals

Required features: "java-lang-Object"

pub fn clone<'env>(
    &'env self
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
[src]

clone

Required features: "java-lang-Object"

pub fn isGroupingUsed<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

pub fn setGroupingUsed<'env>(
    &'env self,
    arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getMaximumIntegerDigits<'env>(
    &'env self
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn setMaximumIntegerDigits<'env>(
    &'env self,
    arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getMinimumIntegerDigits<'env>(
    &'env self
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn setMinimumIntegerDigits<'env>(
    &'env self,
    arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getMaximumFractionDigits<'env>(
    &'env self
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn setMaximumFractionDigits<'env>(
    &'env self,
    arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getMinimumFractionDigits<'env>(
    &'env self
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn setMinimumFractionDigits<'env>(
    &'env self,
    arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn setCurrency<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Currency>>
) -> Result<(), Local<'env, Throwable>>
[src]

setCurrency

Required features: "android-icu-util-Currency"

pub fn getCurrency<'env>(
    &'env self
) -> Result<Option<Local<'env, Currency>>, Local<'env, Throwable>>
[src]

getCurrency

Required features: "android-icu-util-Currency"

pub fn getRoundingMode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn setRoundingMode<'env>(
    &'env self,
    arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getInstance_ULocale_int<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env ULocale>>,
    arg1: i32
) -> Result<Option<Local<'env, NumberFormat>>, Local<'env, Throwable>>
[src]

getInstance

Required features: "android-icu-text-NumberFormat", "android-icu-util-ULocale"

pub const ACCOUNTINGCURRENCYSTYLE: i32[src]

public static final ACCOUNTINGCURRENCYSTYLE

pub const CASHCURRENCYSTYLE: i32[src]

public static final CASHCURRENCYSTYLE

pub const CURRENCYSTYLE: i32[src]

public static final CURRENCYSTYLE

pub const FRACTION_FIELD: i32[src]

public static final FRACTION_FIELD

pub const INTEGERSTYLE: i32[src]

public static final INTEGERSTYLE

pub const INTEGER_FIELD: i32[src]

public static final INTEGER_FIELD

pub const ISOCURRENCYSTYLE: i32[src]

public static final ISOCURRENCYSTYLE

pub const NUMBERSTYLE: i32[src]

public static final NUMBERSTYLE

pub const PERCENTSTYLE: i32[src]

public static final PERCENTSTYLE

pub const PLURALCURRENCYSTYLE: i32[src]

public static final PLURALCURRENCYSTYLE

pub const SCIENTIFICSTYLE: i32[src]

public static final SCIENTIFICSTYLE

pub const STANDARDCURRENCYSTYLE: i32[src]

public static final STANDARDCURRENCYSTYLE

Methods from Deref<Target = UFormat>

Trait Implementations

impl AsJValue for NumberFormat

impl AsValidJObjectAndEnv for NumberFormat

impl Deref for NumberFormat

type Target = UFormat

The resulting type after dereferencing.

impl JniType for NumberFormat

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.