[]Struct jni_android_sys::java::util::GregorianCalendar

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

public class GregorianCalendar

Required feature: "java-util-GregorianCalendar"

Methods

impl GregorianCalendar

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

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

GregorianCalendar

Required features: "java-util-TimeZone"

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

GregorianCalendar

Required features: "java-util-Locale"

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

GregorianCalendar

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

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

pub fn new_int_int_int_int_int<'env>(
    __jni_env: &'env Env,
    arg0: i32,
    arg1: i32,
    arg2: i32,
    arg3: i32,
    arg4: i32
) -> Result<Local<'env, GregorianCalendar>, Local<'env, Throwable>>
[src]

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

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

setGregorianChange

Required features: "java-util-Date"

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

getGregorianChange

Required features: "java-util-Date"

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

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

getTimeZone

Required features: "java-util-TimeZone"

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

toZonedDateTime

Required features: "java-time-ZonedDateTime"

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

from

Required features: "java-time-ZonedDateTime", "java-util-GregorianCalendar"

pub const AD: i32[src]

public static final AD

pub const BC: i32[src]

public static final BC

Methods from Deref<Target = Calendar>

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 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]

pub const AM: i32[src]

pub const AM_PM: i32[src]

pub const APRIL: i32[src]

pub const AUGUST: i32[src]

pub const DATE: i32[src]

pub const DAY_OF_MONTH: i32[src]

pub const DAY_OF_WEEK: i32[src]

pub const DAY_OF_WEEK_IN_MONTH: i32[src]

pub const DAY_OF_YEAR: i32[src]

pub const DECEMBER: i32[src]

pub const DST_OFFSET: i32[src]

pub const ERA: i32[src]

pub const FEBRUARY: i32[src]

pub const FIELD_COUNT: i32[src]

pub const FRIDAY: i32[src]

pub const HOUR: i32[src]

pub const HOUR_OF_DAY: i32[src]

pub const JANUARY: i32[src]

pub const JULY: i32[src]

pub const JUNE: i32[src]

pub const LONG: i32[src]

pub const LONG_FORMAT: i32[src]

pub const LONG_STANDALONE: i32[src]

pub const MARCH: i32[src]

pub const MAY: i32[src]

pub const MILLISECOND: i32[src]

pub const MINUTE: i32[src]

pub const MONDAY: i32[src]

pub const MONTH: i32[src]

pub const NARROW_FORMAT: i32[src]

pub const NARROW_STANDALONE: i32[src]

pub const NOVEMBER: i32[src]

pub const OCTOBER: i32[src]

pub const PM: i32[src]

pub const SATURDAY: i32[src]

pub const SECOND: i32[src]

pub const SEPTEMBER: i32[src]

pub const SHORT: i32[src]

pub const SHORT_FORMAT: i32[src]

pub const SHORT_STANDALONE: i32[src]

pub const SUNDAY: i32[src]

pub const THURSDAY: i32[src]

pub const TUESDAY: i32[src]

pub const UNDECIMBER: i32[src]

pub const WEDNESDAY: i32[src]

pub const WEEK_OF_MONTH: i32[src]

pub const WEEK_OF_YEAR: i32[src]

pub const YEAR: i32[src]

pub const ZONE_OFFSET: i32[src]

Trait Implementations

impl AsJValue for GregorianCalendar

impl AsValidJObjectAndEnv for GregorianCalendar

impl Deref for GregorianCalendar

type Target = Calendar

The resulting type after dereferencing.

impl JniType for GregorianCalendar

Auto Trait Implementations

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.