[−]Struct jni_android_sys::android::icu::util::TimeZone
public class TimeZone
Required feature: "android-icu-util-TimeZone"
Methods
impl TimeZone
pub fn new<'env>(
__jni_env: &'env Env
) -> Result<Local<'env, TimeZone>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env
) -> Result<Local<'env, TimeZone>, Local<'env, Throwable>>
pub fn getOffset_int_int_int_int_int_int<'env>(
&'env self,
arg0: i32,
arg1: i32,
arg2: i32,
arg3: i32,
arg4: i32,
arg5: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: i32,
arg2: i32,
arg3: i32,
arg4: i32,
arg5: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn getOffset_long<'env>(
&'env self,
arg0: i64
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i64
) -> Result<i32, Local<'env, Throwable>>
pub fn getOffset_long_boolean_int_array<'env>(
&'env self,
arg0: i64,
arg1: bool,
arg2: impl Into<Option<&'env IntArray>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: bool,
arg2: impl Into<Option<&'env IntArray>>
) -> Result<(), Local<'env, Throwable>>
pub fn setRawOffset<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn getRawOffset<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn getID<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn setID<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn getDisplayName<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn getDisplayName_Locale<'env>(
&'env self,
arg0: impl Into<Option<&'env Locale>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Locale>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String", "java-util-Locale"
pub fn getDisplayName_ULocale<'env>(
&'env self,
arg0: impl Into<Option<&'env ULocale>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ULocale>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "android-icu-util-ULocale", "java-lang-String"
pub fn getDisplayName_boolean_int<'env>(
&'env self,
arg0: bool,
arg1: i32
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: bool,
arg1: i32
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn getDisplayName_boolean_int_Locale<'env>(
&'env self,
arg0: bool,
arg1: i32,
arg2: impl Into<Option<&'env Locale>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: bool,
arg1: i32,
arg2: impl Into<Option<&'env Locale>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String", "java-util-Locale"
pub fn getDisplayName_boolean_int_ULocale<'env>(
&'env self,
arg0: bool,
arg1: i32,
arg2: impl Into<Option<&'env ULocale>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: bool,
arg1: i32,
arg2: impl Into<Option<&'env ULocale>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "android-icu-util-ULocale", "java-lang-String"
pub fn getDSTSavings<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn useDaylightTime<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>
[src]
pub fn observesDaylightTime<'env>(
&'env self
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self
) -> Result<bool, Local<'env, Throwable>>
pub fn inDaylightTime<'env>(
&'env self,
arg0: impl Into<Option<&'env Date>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Date>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-util-Date"
pub fn getTimeZone_String<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, TimeZone>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, TimeZone>>, Local<'env, Throwable>>
Required features: "android-icu-util-TimeZone", "java-lang-String"
pub fn getFrozenTimeZone<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, TimeZone>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, TimeZone>>, Local<'env, Throwable>>
Required features: "android-icu-util-TimeZone", "java-lang-String"
pub fn getTimeZone_String_int<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>,
arg1: i32
) -> Result<Option<Local<'env, TimeZone>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>,
arg1: i32
) -> Result<Option<Local<'env, TimeZone>>, Local<'env, Throwable>>
Required features: "android-icu-util-TimeZone", "java-lang-String"
pub fn getAvailableIDs_SystemTimeZoneType_String_Integer<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env TimeZone_SystemTimeZoneType>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env Integer>>
) -> Result<Option<Local<'env, Set>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env TimeZone_SystemTimeZoneType>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env Integer>>
) -> Result<Option<Local<'env, Set>>, Local<'env, Throwable>>
Required features: "android-icu-util-TimeZone_SystemTimeZoneType", "java-lang-Integer", "java-lang-String", "java-util-Set"
pub fn getAvailableIDs_int<'env>(
__jni_env: &'env Env,
arg0: i32
) -> Result<Option<Local<'env, ObjectArray<String, Throwable>>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: i32
) -> Result<Option<Local<'env, ObjectArray<String, Throwable>>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn getAvailableIDs_String<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, ObjectArray<String, Throwable>>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, ObjectArray<String, Throwable>>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn getAvailableIDs<'env>(
__jni_env: &'env Env
) -> Result<Option<Local<'env, ObjectArray<String, Throwable>>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env
) -> Result<Option<Local<'env, ObjectArray<String, Throwable>>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn countEquivalentIDs<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn getEquivalentID<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>,
arg1: i32
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>,
arg1: i32
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn getDefault<'env>(
__jni_env: &'env Env
) -> Result<Option<Local<'env, TimeZone>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env
) -> Result<Option<Local<'env, TimeZone>>, Local<'env, Throwable>>
Required features: "android-icu-util-TimeZone"
pub fn hasSameRules<'env>(
&'env self,
arg0: impl Into<Option<&'env TimeZone>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env TimeZone>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "android-icu-util-TimeZone"
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 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 hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn getTZDataVersion<'env>(
__jni_env: &'env Env
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn getCanonicalID_String<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn getCanonicalID_String_boolean_array<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env BooleanArray>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env BooleanArray>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn getRegion<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn getWindowsID<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn getIDForWindowsID<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn isFrozen<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>
[src]
pub fn freeze<'env>(
&'env self
) -> Result<Option<Local<'env, TimeZone>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, TimeZone>>, Local<'env, Throwable>>
Required features: "android-icu-util-TimeZone"
pub fn cloneAsThawed<'env>(
&'env self
) -> Result<Option<Local<'env, TimeZone>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, TimeZone>>, Local<'env, Throwable>>
Required features: "android-icu-util-TimeZone"
pub const GENERIC_LOCATION: i32
[src]
public static final GENERIC_LOCATION
pub fn GMT_ZONE<'env>(env: &'env Env) -> Option<Local<'env, TimeZone>>
[src]
get public static final GMT_ZONE
Required feature: "android-icu-util-TimeZone"
pub const LONG: i32
[src]
public static final LONG
pub const LONG_GENERIC: i32
[src]
public static final LONG_GENERIC
pub const LONG_GMT: i32
[src]
public static final LONG_GMT
pub const SHORT: i32
[src]
public static final SHORT
pub const SHORT_COMMONLY_USED: i32
[src]
public static final SHORT_COMMONLY_USED
pub const SHORT_GENERIC: i32
[src]
public static final SHORT_GENERIC
pub const SHORT_GMT: i32
[src]
public static final SHORT_GMT
pub const TIMEZONE_ICU: i32
[src]
public static final TIMEZONE_ICU
pub const TIMEZONE_JDK: i32
[src]
public static final TIMEZONE_JDK
pub fn UNKNOWN_ZONE<'env>(env: &'env Env) -> Option<Local<'env, TimeZone>>
[src]
get public static final UNKNOWN_ZONE
Required feature: "android-icu-util-TimeZone"
pub const UNKNOWN_ZONE_ID: &'static str
[src]
public static final UNKNOWN_ZONE_ID
Methods from Deref<Target = Object>
pub fn getClass<'env>(
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
Required features: "java-lang-Class"
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 toString<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn notify<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn notifyAll<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn wait_long<'env>(
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
pub fn wait_long_int<'env>(
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
pub fn wait<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
Trait Implementations
impl AsJValue for TimeZone
impl AsRef<Cloneable> for TimeZone
impl AsRef<Freezable> for TimeZone
impl AsRef<Serializable> for TimeZone
fn as_ref(&self) -> &Serializable
impl AsValidJObjectAndEnv for TimeZone
impl Deref for TimeZone
impl JniType for TimeZone
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for TimeZone
impl !Send for TimeZone
impl !Sync for TimeZone
impl Unpin for TimeZone
impl UnwindSafe for TimeZone
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>,