[]Struct jni_android_sys::java::text::NumberFormat

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

public class NumberFormat

Required feature: "java-text-NumberFormat"

Methods

impl NumberFormat

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_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 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 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 getInstance<'env>(
    __jni_env: &'env Env
) -> Result<Option<Local<'env, NumberFormat>>, Local<'env, Throwable>>
[src]

getInstance

Required features: "java-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: "java-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: "java-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: "java-text-NumberFormat", "java-util-Locale"

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

getIntegerInstance

Required features: "java-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: "java-text-NumberFormat", "java-util-Locale"

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

getCurrencyInstance

Required features: "java-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: "java-text-NumberFormat", "java-util-Locale"

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

getPercentInstance

Required features: "java-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: "java-text-NumberFormat", "java-util-Locale"

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 getCurrency<'env>(
    &'env self
) -> Result<Option<Local<'env, Currency>>, Local<'env, Throwable>>
[src]

getCurrency

Required features: "java-util-Currency"

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

setCurrency

Required features: "java-util-Currency"

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

getRoundingMode

Required features: "java-math-RoundingMode"

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

setRoundingMode

Required features: "java-math-RoundingMode"

pub const FRACTION_FIELD: i32[src]

public static final FRACTION_FIELD

pub const INTEGER_FIELD: i32[src]

public static final INTEGER_FIELD

Methods from Deref<Target = Format>

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

format

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

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 formatToCharacterIterator<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<Option<Local<'env, AttributedCharacterIterator>>, Local<'env, Throwable>>
[src]

formatToCharacterIterator

Required features: "java-lang-Object", "java-text-AttributedCharacterIterator"

pub fn parseObject_String_ParsePosition<'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 parseObject_String<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
[src]

parseObject

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

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

clone

Required features: "java-lang-Object"

Trait Implementations

impl AsJValue for NumberFormat

impl AsValidJObjectAndEnv for NumberFormat

impl Deref for NumberFormat

type Target = Format

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.