[−]Struct jni_android_sys::java::text::DateFormat
public class DateFormat
Required feature: "java-text-DateFormat"
Methods
impl 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]
&'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>>
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]
&'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>>
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]
&'env self,
arg0: impl Into<Option<&'env Date>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Date>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env ParsePosition>>
) -> Result<Option<Local<'env, Date>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env ParsePosition>>
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
Required features: "java-lang-Object", "java-lang-String", "java-text-ParsePosition"
pub fn getTimeInstance<'env>(
__jni_env: &'env Env
) -> Result<Option<Local<'env, DateFormat>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env
) -> Result<Option<Local<'env, DateFormat>>, Local<'env, Throwable>>
Required features: "java-text-DateFormat"
pub fn getTimeInstance_int<'env>(
__jni_env: &'env Env,
arg0: i32
) -> Result<Option<Local<'env, DateFormat>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: i32
) -> Result<Option<Local<'env, DateFormat>>, Local<'env, Throwable>>
Required features: "java-text-DateFormat"
pub fn getTimeInstance_int_Locale<'env>(
__jni_env: &'env Env,
arg0: i32,
arg1: impl Into<Option<&'env Locale>>
) -> Result<Option<Local<'env, DateFormat>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: i32,
arg1: impl Into<Option<&'env Locale>>
) -> Result<Option<Local<'env, DateFormat>>, Local<'env, Throwable>>
Required features: "java-text-DateFormat", "java-util-Locale"
pub fn getDateInstance<'env>(
__jni_env: &'env Env
) -> Result<Option<Local<'env, DateFormat>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env
) -> Result<Option<Local<'env, DateFormat>>, Local<'env, Throwable>>
Required features: "java-text-DateFormat"
pub fn getDateInstance_int<'env>(
__jni_env: &'env Env,
arg0: i32
) -> Result<Option<Local<'env, DateFormat>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: i32
) -> Result<Option<Local<'env, DateFormat>>, Local<'env, Throwable>>
Required features: "java-text-DateFormat"
pub fn getDateInstance_int_Locale<'env>(
__jni_env: &'env Env,
arg0: i32,
arg1: impl Into<Option<&'env Locale>>
) -> Result<Option<Local<'env, DateFormat>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: i32,
arg1: impl Into<Option<&'env Locale>>
) -> Result<Option<Local<'env, DateFormat>>, Local<'env, Throwable>>
Required features: "java-text-DateFormat", "java-util-Locale"
pub fn getDateTimeInstance<'env>(
__jni_env: &'env Env
) -> Result<Option<Local<'env, DateFormat>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env
) -> Result<Option<Local<'env, DateFormat>>, Local<'env, Throwable>>
Required features: "java-text-DateFormat"
pub fn getDateTimeInstance_int_int<'env>(
__jni_env: &'env Env,
arg0: i32,
arg1: i32
) -> Result<Option<Local<'env, DateFormat>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: i32,
arg1: i32
) -> Result<Option<Local<'env, DateFormat>>, Local<'env, Throwable>>
Required features: "java-text-DateFormat"
pub fn getDateTimeInstance_int_int_Locale<'env>(
__jni_env: &'env Env,
arg0: i32,
arg1: i32,
arg2: impl Into<Option<&'env Locale>>
) -> Result<Option<Local<'env, DateFormat>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: i32,
arg1: i32,
arg2: impl Into<Option<&'env Locale>>
) -> Result<Option<Local<'env, DateFormat>>, Local<'env, Throwable>>
Required features: "java-text-DateFormat", "java-util-Locale"
pub fn getInstance<'env>(
__jni_env: &'env Env
) -> Result<Option<Local<'env, DateFormat>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env
) -> Result<Option<Local<'env, DateFormat>>, Local<'env, Throwable>>
Required features: "java-text-DateFormat"
pub fn getAvailableLocales<'env>(
__jni_env: &'env Env
) -> Result<Option<Local<'env, ObjectArray<Locale, Throwable>>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env
) -> Result<Option<Local<'env, ObjectArray<Locale, Throwable>>>, Local<'env, Throwable>>
Required features: "java-util-Locale"
pub fn setCalendar<'env>(
&'env self,
arg0: impl Into<Option<&'env Calendar>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Calendar>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-util-Calendar"
pub fn getCalendar<'env>(
&'env self
) -> Result<Option<Local<'env, Calendar>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Calendar>>, Local<'env, Throwable>>
Required features: "java-util-Calendar"
pub fn setNumberFormat<'env>(
&'env self,
arg0: impl Into<Option<&'env NumberFormat>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env NumberFormat>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-text-NumberFormat"
pub fn getNumberFormat<'env>(
&'env self
) -> Result<Option<Local<'env, NumberFormat>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, NumberFormat>>, Local<'env, Throwable>>
Required features: "java-text-NumberFormat"
pub fn setTimeZone<'env>(
&'env self,
arg0: impl Into<Option<&'env TimeZone>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env TimeZone>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-util-TimeZone"
pub fn getTimeZone<'env>(
&'env self
) -> Result<Option<Local<'env, TimeZone>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, TimeZone>>, Local<'env, Throwable>>
Required features: "java-util-TimeZone"
pub fn setLenient<'env>(
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-Object"
pub fn clone<'env>(
&'env self
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
Required features: "java-lang-Object"
pub const AM_PM_FIELD: i32
[src]
public static final AM_PM_FIELD
pub const DATE_FIELD: i32
[src]
public static final DATE_FIELD
pub const DAY_OF_WEEK_FIELD: i32
[src]
public static final DAY_OF_WEEK_FIELD
pub const DAY_OF_WEEK_IN_MONTH_FIELD: i32
[src]
public static final DAY_OF_WEEK_IN_MONTH_FIELD
pub const DAY_OF_YEAR_FIELD: i32
[src]
public static final DAY_OF_YEAR_FIELD
pub const DEFAULT: i32
[src]
public static final DEFAULT
pub const ERA_FIELD: i32
[src]
public static final ERA_FIELD
pub const FULL: i32
[src]
public static final FULL
pub const HOUR0_FIELD: i32
[src]
public static final HOUR0_FIELD
pub const HOUR1_FIELD: i32
[src]
public static final HOUR1_FIELD
pub const HOUR_OF_DAY0_FIELD: i32
[src]
public static final HOUR_OF_DAY0_FIELD
pub const HOUR_OF_DAY1_FIELD: i32
[src]
public static final HOUR_OF_DAY1_FIELD
pub const LONG: i32
[src]
public static final LONG
pub const MEDIUM: i32
[src]
public static final MEDIUM
pub const MILLISECOND_FIELD: i32
[src]
public static final MILLISECOND_FIELD
pub const MINUTE_FIELD: i32
[src]
public static final MINUTE_FIELD
pub const MONTH_FIELD: i32
[src]
public static final MONTH_FIELD
pub const SECOND_FIELD: i32
[src]
public static final SECOND_FIELD
pub const SHORT: i32
[src]
public static final SHORT
pub const TIMEZONE_FIELD: i32
[src]
public static final TIMEZONE_FIELD
pub const WEEK_OF_MONTH_FIELD: i32
[src]
public static final WEEK_OF_MONTH_FIELD
pub const WEEK_OF_YEAR_FIELD: i32
[src]
public static final WEEK_OF_YEAR_FIELD
pub const YEAR_FIELD: i32
[src]
public static final YEAR_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]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
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]
&'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>>
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]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<Option<Local<'env, AttributedCharacterIterator>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env ParsePosition>>
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
Required features: "java-lang-Object", "java-lang-String"
pub fn clone<'env>(
&'env self
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
Required features: "java-lang-Object"
Trait Implementations
impl AsJValue for DateFormat
impl AsValidJObjectAndEnv for DateFormat
impl Deref for DateFormat
impl JniType for DateFormat
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for DateFormat
impl !Send for DateFormat
impl !Sync for DateFormat
impl Unpin for DateFormat
impl UnwindSafe for DateFormat
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,