[]Struct jni_android_sys::android::text::format::Time

#[repr(transparent)]
pub struct Time(_);
Deprecated

public class Time

Required feature: "android-text-format-Time"

Methods

impl Time

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

Time

Required features: "java-lang-String"

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

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

Time

Required features: "android-text-format-Time"

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

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

switchTimezone

Required features: "java-lang-String"

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

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

clear

Required features: "java-lang-String"

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

compare

Required features: "android-text-format-Time"

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

format

Required features: "java-lang-String"

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

toString

Required features: "java-lang-String"

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

parse

Required features: "java-lang-String"

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

parse3339

Required features: "java-lang-String"

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

getCurrentTimezone

Required features: "java-lang-String"

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

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

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

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

format2445

Required features: "java-lang-String"

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

set

Required features: "android-text-format-Time"

pub fn set_int_int_int_int_int_int<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: i32,
    arg3: i32,
    arg4: i32,
    arg5: i32
) -> Result<(), Local<'env, Throwable>>
[src]

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

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

before

Required features: "android-text-format-Time"

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

after

Required features: "android-text-format-Time"

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

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

format3339

Required features: "java-lang-String"

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

isEpoch

Required features: "android-text-format-Time"

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

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

pub fn getWeeksSinceEpochFromJulianDay<'env>(
    __jni_env: &'env Env,
    arg0: i32,
    arg1: i32
) -> Result<i32, Local<'env, Throwable>>
[src]

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

pub const EPOCH_JULIAN_DAY: i32[src]

public static final EPOCH_JULIAN_DAY

pub const FRIDAY: i32[src]

public static final FRIDAY

pub const HOUR: i32[src]

public static final HOUR

pub const MINUTE: i32[src]

public static final MINUTE

pub const MONDAY: i32[src]

public static final MONDAY

pub const MONDAY_BEFORE_JULIAN_EPOCH: i32[src]

public static final MONDAY_BEFORE_JULIAN_EPOCH

pub const MONTH: i32[src]

public static final MONTH

pub const MONTH_DAY: i32[src]

public static final MONTH_DAY

pub const SATURDAY: i32[src]

public static final SATURDAY

pub const SECOND: i32[src]

public static final SECOND

pub const SUNDAY: i32[src]

public static final SUNDAY

pub const THURSDAY: i32[src]

public static final THURSDAY

pub const TIMEZONE_UTC: &'static str[src]

public static final TIMEZONE_UTC

pub const TUESDAY: i32[src]

public static final TUESDAY

pub const WEDNESDAY: i32[src]

public static final WEDNESDAY

pub const WEEK_DAY: i32[src]

public static final WEEK_DAY

pub const WEEK_NUM: i32[src]

public static final WEEK_NUM

pub const YEAR: i32[src]

public static final YEAR

pub const YEAR_DAY: i32[src]

public static final YEAR_DAY

pub fn allDay<'env>(&'env self) -> bool[src]

get public allDay

pub fn set_allDay<'env>(&'env self, value: bool)[src]

set public allDay

pub fn gmtoff<'env>(&'env self) -> i64[src]

get public gmtoff

pub fn set_gmtoff<'env>(&'env self, value: i64)[src]

set public gmtoff

pub fn hour<'env>(&'env self) -> i32[src]

get public hour

pub fn set_hour<'env>(&'env self, value: i32)[src]

set public hour

pub fn isDst<'env>(&'env self) -> i32[src]

get public isDst

pub fn set_isDst<'env>(&'env self, value: i32)[src]

set public isDst

pub fn minute<'env>(&'env self) -> i32[src]

get public minute

pub fn set_minute<'env>(&'env self, value: i32)[src]

set public minute

pub fn month<'env>(&'env self) -> i32[src]

get public month

pub fn set_month<'env>(&'env self, value: i32)[src]

set public month

pub fn monthDay<'env>(&'env self) -> i32[src]

get public monthDay

pub fn set_monthDay<'env>(&'env self, value: i32)[src]

set public monthDay

pub fn second<'env>(&'env self) -> i32[src]

get public second

pub fn set_second<'env>(&'env self, value: i32)[src]

set public second

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

get public timezone

Required feature: "java-lang-String"

pub fn set_timezone<'env, 'obj>(
    &'env self,
    value: impl Into<Option<&'obj String>>
)
[src]

set public timezone

Required feature: "java-lang-String"

pub fn weekDay<'env>(&'env self) -> i32[src]

get public weekDay

pub fn set_weekDay<'env>(&'env self, value: i32)[src]

set public weekDay

pub fn year<'env>(&'env self) -> i32[src]

get public year

pub fn set_year<'env>(&'env self, value: i32)[src]

set public year

pub fn yearDay<'env>(&'env self) -> i32[src]

get public yearDay

pub fn set_yearDay<'env>(&'env self, value: i32)[src]

set public yearDay

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 Time

impl AsValidJObjectAndEnv for Time

impl Deref for Time

type Target = Object

The resulting type after dereferencing.

impl JniType for Time

Auto Trait Implementations

impl RefUnwindSafe for Time

impl !Send for Time

impl !Sync for Time

impl Unpin for Time

impl UnwindSafe for Time

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.