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

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

public class SimpleDateFormat

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

Methods

impl SimpleDateFormat

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

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

SimpleDateFormat

Required features: "java-lang-String"

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

SimpleDateFormat

Required features: "java-lang-String", "java-util-Locale"

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

SimpleDateFormat

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

pub fn new_String_String_ULocale<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env String>>,
    arg2: impl Into<Option<&'env ULocale>>
) -> Result<Local<'env, SimpleDateFormat>, Local<'env, Throwable>>
[src]

SimpleDateFormat

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

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

SimpleDateFormat

Required features: "android-icu-text-DateFormatSymbols", "java-lang-String"

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

set2DigitYearStart

Required features: "java-util-Date"

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

get2DigitYearStart

Required features: "java-util-Date"

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 format<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Calendar>>,
    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-Calendar", "java-lang-StringBuffer", "java-text-FieldPosition"

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

setNumberFormat

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

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

parse

Required features: "android-icu-util-Calendar", "java-lang-String", "java-text-ParsePosition"

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

getDateFormatSymbols

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

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

setDateFormatSymbols

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

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

getTimeZoneFormat

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

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

setTimeZoneFormat

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

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

clone

Required features: "java-lang-Object"

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 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 setNumberFormat_String_NumberFormat<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env NumberFormat>>
) -> Result<(), Local<'env, Throwable>>
[src]

setNumberFormat

Required features: "android-icu-text-NumberFormat", "java-lang-String"

pub fn getNumberFormat<'env>(
    &'env self,
    arg0: jchar
) -> Result<Option<Local<'env, NumberFormat>>, Local<'env, Throwable>>
[src]

getNumberFormat

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

Methods from Deref<Target = DateFormat>

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_Calendar_StringBuffer_FieldPosition<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Calendar>>,
    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-Calendar", "java-lang-StringBuffer", "java-text-FieldPosition"

pub fn format_Date_StringBuffer_FieldPosition<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Date>>,
    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", "java-util-Date"

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

format

Required features: "java-lang-String", "java-util-Date"

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

parse

Required features: "java-lang-String", "java-util-Date"

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

parse

Required features: "android-icu-util-Calendar", "java-lang-String", "java-text-ParsePosition"

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

parse

Required features: "java-lang-String", "java-text-ParsePosition", "java-util-Date"

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

setCalendar

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

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

getCalendar

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

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

setNumberFormat

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

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

getNumberFormat

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

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

setTimeZone

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

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

getTimeZone

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

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

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

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

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

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

setBooleanAttribute

Required features: "android-icu-text-DateFormat", "android-icu-text-DateFormat_BooleanAttribute"

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

getBooleanAttribute

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

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 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 const ABBR_GENERIC_TZ: &'static str[src]

pub const ABBR_MONTH: &'static str[src]

pub const ABBR_MONTH_DAY: &'static str[src]

pub const ABBR_MONTH_WEEKDAY_DAY: &'static str[src]

pub const ABBR_QUARTER: &'static str[src]

pub const ABBR_SPECIFIC_TZ: &'static str[src]

pub const ABBR_UTC_TZ: &'static str[src]

pub const ABBR_WEEKDAY: &'static str[src]

pub const AM_PM_FIELD: i32[src]

pub const AM_PM_MIDNIGHT_NOON_FIELD: i32[src]

pub const DATE_FIELD: i32[src]

pub const DAY: &'static str[src]

pub const DAY_OF_WEEK_FIELD: i32[src]

pub const DAY_OF_WEEK_IN_MONTH_FIELD: i32[src]

pub const DAY_OF_YEAR_FIELD: i32[src]

pub const DEFAULT: i32[src]

pub const DOW_LOCAL_FIELD: i32[src]

pub const ERA_FIELD: i32[src]

pub const EXTENDED_YEAR_FIELD: i32[src]

pub const FLEXIBLE_DAY_PERIOD_FIELD: i32[src]

pub const FRACTIONAL_SECOND_FIELD: i32[src]

pub const FULL: i32[src]

pub const GENERIC_TZ: &'static str[src]

pub const HOUR: &'static str[src]

pub const HOUR0_FIELD: i32[src]

pub const HOUR1_FIELD: i32[src]

pub const HOUR24: &'static str[src]

pub const HOUR24_MINUTE: &'static str[src]

pub const HOUR24_MINUTE_SECOND: &'static str[src]

pub const HOUR_MINUTE: &'static str[src]

pub const HOUR_MINUTE_SECOND: &'static str[src]

pub const HOUR_OF_DAY0_FIELD: i32[src]

pub const HOUR_OF_DAY1_FIELD: i32[src]

pub const JULIAN_DAY_FIELD: i32[src]

pub const LOCATION_TZ: &'static str[src]

pub const LONG: i32[src]

pub const MEDIUM: i32[src]

pub const MILLISECONDS_IN_DAY_FIELD: i32[src]

pub const MILLISECOND_FIELD: i32[src]

pub const MINUTE: &'static str[src]

pub const MINUTE_FIELD: i32[src]

pub const MINUTE_SECOND: &'static str[src]

pub const MONTH: &'static str[src]

pub const MONTH_DAY: &'static str[src]

pub const MONTH_FIELD: i32[src]

pub const MONTH_WEEKDAY_DAY: &'static str[src]

pub const NONE: i32[src]

pub const NUM_MONTH: &'static str[src]

pub const NUM_MONTH_DAY: &'static str[src]

pub const NUM_MONTH_WEEKDAY_DAY: &'static str[src]

pub const QUARTER: &'static str[src]

pub const QUARTER_FIELD: i32[src]

pub const RELATIVE: i32[src]

pub const RELATIVE_DEFAULT: i32[src]

pub const RELATIVE_FULL: i32[src]

pub const RELATIVE_LONG: i32[src]

pub const RELATIVE_MEDIUM: i32[src]

pub const RELATIVE_SHORT: i32[src]

pub const SECOND: &'static str[src]

pub const SECOND_FIELD: i32[src]

pub const SHORT: i32[src]

pub const SPECIFIC_TZ: &'static str[src]

pub const STANDALONE_DAY_FIELD: i32[src]

pub const STANDALONE_MONTH_FIELD: i32[src]

pub const STANDALONE_QUARTER_FIELD: i32[src]

pub const TIMEZONE_FIELD: i32[src]

pub const TIMEZONE_GENERIC_FIELD: i32[src]

pub const TIMEZONE_ISO_FIELD: i32[src]

pub const TIMEZONE_ISO_LOCAL_FIELD: i32[src]

pub const TIMEZONE_LOCALIZED_GMT_OFFSET_FIELD: i32[src]

pub const TIMEZONE_RFC_FIELD: i32[src]

pub const TIMEZONE_SPECIAL_FIELD: i32[src]

pub const WEEKDAY: &'static str[src]

pub const WEEK_OF_MONTH_FIELD: i32[src]

pub const WEEK_OF_YEAR_FIELD: i32[src]

pub const YEAR: &'static str[src]

pub const YEAR_ABBR_MONTH: &'static str[src]

pub const YEAR_ABBR_MONTH_DAY: &'static str[src]

pub const YEAR_ABBR_MONTH_WEEKDAY_DAY: &'static str[src]

pub const YEAR_ABBR_QUARTER: &'static str[src]

pub const YEAR_FIELD: i32[src]

pub const YEAR_MONTH: &'static str[src]

pub const YEAR_MONTH_DAY: &'static str[src]

pub const YEAR_MONTH_WEEKDAY_DAY: &'static str[src]

pub const YEAR_NAME_FIELD: i32[src]

pub const YEAR_NUM_MONTH: &'static str[src]

pub const YEAR_NUM_MONTH_DAY: &'static str[src]

pub const YEAR_NUM_MONTH_WEEKDAY_DAY: &'static str[src]

pub const YEAR_QUARTER: &'static str[src]

pub const YEAR_WOY_FIELD: i32[src]

Trait Implementations

impl AsJValue for SimpleDateFormat

impl AsValidJObjectAndEnv for SimpleDateFormat

impl Deref for SimpleDateFormat

type Target = DateFormat

The resulting type after dereferencing.

impl JniType for SimpleDateFormat

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.