[]Struct jni_android_sys::java::text::DecimalFormat

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

public class DecimalFormat

Required feature: "java-text-DecimalFormat"

Methods

impl DecimalFormat

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

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

DecimalFormat

Required features: "java-lang-String"

pub fn new_String_DecimalFormatSymbols<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env DecimalFormatSymbols>>
) -> Result<Local<'env, DecimalFormat>, Local<'env, Throwable>>
[src]

DecimalFormat

Required features: "java-lang-String", "java-text-DecimalFormatSymbols"

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

getDecimalFormatSymbols

Required features: "java-text-DecimalFormatSymbols"

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

setDecimalFormatSymbols

Required features: "java-text-DecimalFormatSymbols"

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

getPositivePrefix

Required features: "java-lang-String"

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

setPositivePrefix

Required features: "java-lang-String"

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

getNegativePrefix

Required features: "java-lang-String"

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

setNegativePrefix

Required features: "java-lang-String"

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

getPositiveSuffix

Required features: "java-lang-String"

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

setPositiveSuffix

Required features: "java-lang-String"

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

getNegativeSuffix

Required features: "java-lang-String"

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

setNegativeSuffix

Required features: "java-lang-String"

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

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

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

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

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

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

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

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

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

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

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

clone

Required features: "java-lang-Object"

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

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

toPattern

Required features: "java-lang-String"

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

toLocalizedPattern

Required features: "java-lang-String"

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

applyPattern

Required features: "java-lang-String"

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

applyLocalizedPattern

Required features: "java-lang-String"

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

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

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

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

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

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

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

pub fn getMinimumFractionDigits<'env>(
    &'env self
) -> Result<i32, 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"

Methods from Deref<Target = 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 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]

pub const INTEGER_FIELD: i32[src]

Trait Implementations

impl AsJValue for DecimalFormat

impl AsValidJObjectAndEnv for DecimalFormat

impl Deref for DecimalFormat

type Target = NumberFormat

The resulting type after dereferencing.

impl JniType for DecimalFormat

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.