[]Struct jni_android_sys::java::util::Calendar

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

public class Calendar

Required feature: "java-util-Calendar"

Methods

impl Calendar

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

getInstance

Required features: "java-util-Calendar"

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

getInstance

Required features: "java-util-Calendar", "java-util-TimeZone"

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

getInstance

Required features: "java-util-Calendar", "java-util-Locale"

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

getInstance

Required features: "java-util-Calendar", "java-util-Locale", "java-util-TimeZone"

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

getAvailableLocales

Required features: "java-util-Locale"

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

getTime

Required features: "java-util-Date"

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

setTime

Required features: "java-util-Date"

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

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

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

pub fn set_int_int<'env>(
    &'env self,
    arg0: i32,
    arg1: 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 set_int_int_int_int_int<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: i32,
    arg3: i32,
    arg4: i32
) -> Result<(), Local<'env, Throwable>>
[src]

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 clear<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

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

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

pub fn getDisplayName<'env>(
    &'env self,
    arg0: i32,
    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 getDisplayNames<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: impl Into<Option<&'env Locale>>
) -> Result<Option<Local<'env, Map>>, Local<'env, Throwable>>
[src]

getDisplayNames

Required features: "java-util-Locale", "java-util-Map"

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

getAvailableCalendarTypes

Required features: "java-util-Set"

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

getCalendarType

Required features: "java-lang-String"

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 hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

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

before

Required features: "java-lang-Object"

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

after

Required features: "java-lang-Object"

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

compareTo

Required features: "java-util-Calendar"

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

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

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

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 setFirstDayOfWeek<'env>(
    &'env self,
    arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

clone

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 toInstant<'env>(
    &'env self
) -> Result<Option<Local<'env, Instant>>, Local<'env, Throwable>>
[src]

toInstant

Required features: "java-time-Instant"

pub const ALL_STYLES: i32[src]

public static final ALL_STYLES

pub const AM: i32[src]

public static final AM

pub const AM_PM: i32[src]

public static final AM_PM

pub const APRIL: i32[src]

public static final APRIL

pub const AUGUST: i32[src]

public static final AUGUST

pub const DATE: i32[src]

public static final DATE

pub const DAY_OF_MONTH: i32[src]

public static final DAY_OF_MONTH

pub const DAY_OF_WEEK: i32[src]

public static final DAY_OF_WEEK

pub const DAY_OF_WEEK_IN_MONTH: i32[src]

public static final DAY_OF_WEEK_IN_MONTH

pub const DAY_OF_YEAR: i32[src]

public static final DAY_OF_YEAR

pub const DECEMBER: i32[src]

public static final DECEMBER

pub const DST_OFFSET: i32[src]

public static final DST_OFFSET

pub const ERA: i32[src]

public static final ERA

pub const FEBRUARY: i32[src]

public static final FEBRUARY

pub const FIELD_COUNT: i32[src]

public static final FIELD_COUNT

pub const FRIDAY: i32[src]

public static final FRIDAY

pub const HOUR: i32[src]

public static final HOUR

pub const HOUR_OF_DAY: i32[src]

public static final HOUR_OF_DAY

pub const JANUARY: i32[src]

public static final JANUARY

pub const JULY: i32[src]

public static final JULY

pub const JUNE: i32[src]

public static final JUNE

pub const LONG: i32[src]

public static final LONG

pub const LONG_FORMAT: i32[src]

public static final LONG_FORMAT

pub const LONG_STANDALONE: i32[src]

public static final LONG_STANDALONE

pub const MARCH: i32[src]

public static final MARCH

pub const MAY: i32[src]

public static final MAY

pub const MILLISECOND: i32[src]

public static final MILLISECOND

pub const MINUTE: i32[src]

public static final MINUTE

pub const MONDAY: i32[src]

public static final MONDAY

pub const MONTH: i32[src]

public static final MONTH

pub const NARROW_FORMAT: i32[src]

public static final NARROW_FORMAT

pub const NARROW_STANDALONE: i32[src]

public static final NARROW_STANDALONE

pub const NOVEMBER: i32[src]

public static final NOVEMBER

pub const OCTOBER: i32[src]

public static final OCTOBER

pub const PM: i32[src]

public static final PM

pub const SATURDAY: i32[src]

public static final SATURDAY

pub const SECOND: i32[src]

public static final SECOND

pub const SEPTEMBER: i32[src]

public static final SEPTEMBER

pub const SHORT: i32[src]

public static final SHORT

pub const SHORT_FORMAT: i32[src]

public static final SHORT_FORMAT

pub const SHORT_STANDALONE: i32[src]

public static final SHORT_STANDALONE

pub const SUNDAY: i32[src]

public static final SUNDAY

pub const THURSDAY: i32[src]

public static final THURSDAY

pub const TUESDAY: i32[src]

public static final TUESDAY

pub const UNDECIMBER: i32[src]

public static final UNDECIMBER

pub const WEDNESDAY: i32[src]

public static final WEDNESDAY

pub const WEEK_OF_MONTH: i32[src]

public static final WEEK_OF_MONTH

pub const WEEK_OF_YEAR: i32[src]

public static final WEEK_OF_YEAR

pub const YEAR: i32[src]

public static final YEAR

pub const ZONE_OFFSET: i32[src]

public static final ZONE_OFFSET

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 Calendar

impl AsRef<Cloneable> for Calendar

impl AsRef<Comparable> for Calendar

impl AsRef<Serializable> for Calendar

impl AsValidJObjectAndEnv for Calendar

impl Deref for Calendar

type Target = Object

The resulting type after dereferencing.

impl JniType for Calendar

Auto Trait Implementations

impl RefUnwindSafe for Calendar

impl !Send for Calendar

impl !Sync for Calendar

impl Unpin for Calendar

impl UnwindSafe for Calendar

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.