[]Struct jni_android_sys::java::text::SimpleDateFormat

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

public class SimpleDateFormat

Required feature: "java-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_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: "java-lang-String", "java-text-DateFormatSymbols"

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 format<'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 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, Date>>, Local<'env, Throwable>>
[src]

parse

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

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: "java-text-DateFormatSymbols"

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

setDateFormatSymbols

Required features: "java-text-DateFormatSymbols"

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"

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_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_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: "java-util-Calendar"

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

getCalendar

Required features: "java-util-Calendar"

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

setNumberFormat

Required features: "java-text-NumberFormat"

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

getNumberFormat

Required features: "java-text-NumberFormat"

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

setTimeZone

Required features: "java-util-TimeZone"

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

getTimeZone

Required features: "java-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 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 AM_PM_FIELD: i32[src]

pub const DATE_FIELD: i32[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 ERA_FIELD: i32[src]

pub const FULL: i32[src]

pub const HOUR0_FIELD: i32[src]

pub const HOUR1_FIELD: i32[src]

pub const HOUR_OF_DAY0_FIELD: i32[src]

pub const HOUR_OF_DAY1_FIELD: i32[src]

pub const LONG: i32[src]

pub const MEDIUM: i32[src]

pub const MILLISECOND_FIELD: i32[src]

pub const MINUTE_FIELD: i32[src]

pub const MONTH_FIELD: i32[src]

pub const SECOND_FIELD: i32[src]

pub const SHORT: i32[src]

pub const TIMEZONE_FIELD: i32[src]

pub const WEEK_OF_MONTH_FIELD: i32[src]

pub const WEEK_OF_YEAR_FIELD: i32[src]

pub const YEAR_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.