[]Struct jni_android_sys::java::util::TimeZone

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

public class TimeZone

Required feature: "java-util-TimeZone"

Methods

impl TimeZone

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

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]

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

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

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]

getID

Required features: "java-lang-String"

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

setID

Required features: "java-lang-String"

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

getDisplayName

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]

getDisplayName

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

pub fn getDisplayName_boolean_int<'env>(
    &'env self,
    arg0: bool,
    arg1: i32
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

getDisplayName

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]

getDisplayName

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

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]

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

inDaylightTime

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]

getTimeZone

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

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

getTimeZone

Required features: "java-time-ZoneId", "java-util-TimeZone"

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

toZoneId

Required features: "java-time-ZoneId"

pub fn getAvailableIDs_int<'env>(
    __jni_env: &'env Env,
    arg0: i32
) -> Result<Option<Local<'env, ObjectArray<String, Throwable>>>, Local<'env, Throwable>>
[src]

getAvailableIDs

Required features: "java-lang-String"

pub fn getAvailableIDs<'env>(
    __jni_env: &'env Env
) -> Result<Option<Local<'env, ObjectArray<String, Throwable>>>, Local<'env, Throwable>>
[src]

getAvailableIDs

Required features: "java-lang-String"

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

getDefault

Required features: "java-util-TimeZone"

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

setDefault

Required features: "java-util-TimeZone"

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

hasSameRules

Required features: "java-util-TimeZone"

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

clone

Required features: "java-lang-Object"

pub const LONG: i32[src]

public static final LONG

pub const SHORT: i32[src]

public static final SHORT

Methods from Deref<Target = Object>

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

getClass

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]

equals

Required features: "java-lang-Object"

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

toString

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]

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

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

Trait Implementations

impl AsJValue for TimeZone

impl AsRef<Cloneable> for TimeZone

impl AsRef<Serializable> for TimeZone

impl AsValidJObjectAndEnv for TimeZone

impl Deref for TimeZone

type Target = Object

The resulting type after dereferencing.

impl JniType for TimeZone

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]

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.