[]Struct jni_android_sys::java::time::Month

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

public enum Month

Required feature: "java-time-Month"

Methods

impl Month

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

values

Required features: "java-time-Month"

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

valueOf

Required features: "java-lang-String", "java-time-Month"

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

of

Required features: "java-time-Month"

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

from

Required features: "java-time-Month", "java-time-temporal-TemporalAccessor"

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

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

getDisplayName

Required features: "java-lang-String", "java-time-format-TextStyle", "java-util-Locale"

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

isSupported

Required features: "java-time-temporal-TemporalField"

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

range

Required features: "java-time-temporal-TemporalField", "java-time-temporal-ValueRange"

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

get

Required features: "java-time-temporal-TemporalField"

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

getLong

Required features: "java-time-temporal-TemporalField"

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

plus

Required features: "java-time-Month"

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

minus

Required features: "java-time-Month"

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

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

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

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

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

firstMonthOfQuarter

Required features: "java-time-Month"

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

query

Required features: "java-lang-Object", "java-time-temporal-TemporalQuery"

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

adjustInto

Required features: "java-time-temporal-Temporal"

pub fn JANUARY<'env>(env: &'env Env) -> Option<Local<'env, Month>>[src]

get public static final JANUARY

Required feature: "java-time-Month"

pub fn FEBRUARY<'env>(env: &'env Env) -> Option<Local<'env, Month>>[src]

get public static final FEBRUARY

Required feature: "java-time-Month"

pub fn MARCH<'env>(env: &'env Env) -> Option<Local<'env, Month>>[src]

get public static final MARCH

Required feature: "java-time-Month"

pub fn APRIL<'env>(env: &'env Env) -> Option<Local<'env, Month>>[src]

get public static final APRIL

Required feature: "java-time-Month"

pub fn MAY<'env>(env: &'env Env) -> Option<Local<'env, Month>>[src]

get public static final MAY

Required feature: "java-time-Month"

pub fn JUNE<'env>(env: &'env Env) -> Option<Local<'env, Month>>[src]

get public static final JUNE

Required feature: "java-time-Month"

pub fn JULY<'env>(env: &'env Env) -> Option<Local<'env, Month>>[src]

get public static final JULY

Required feature: "java-time-Month"

pub fn AUGUST<'env>(env: &'env Env) -> Option<Local<'env, Month>>[src]

get public static final AUGUST

Required feature: "java-time-Month"

pub fn SEPTEMBER<'env>(env: &'env Env) -> Option<Local<'env, Month>>[src]

get public static final SEPTEMBER

Required feature: "java-time-Month"

pub fn OCTOBER<'env>(env: &'env Env) -> Option<Local<'env, Month>>[src]

get public static final OCTOBER

Required feature: "java-time-Month"

pub fn NOVEMBER<'env>(env: &'env Env) -> Option<Local<'env, Month>>[src]

get public static final NOVEMBER

Required feature: "java-time-Month"

pub fn DECEMBER<'env>(env: &'env Env) -> Option<Local<'env, Month>>[src]

get public static final DECEMBER

Required feature: "java-time-Month"

Methods from Deref<Target = Enum>

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

name

Required features: "java-lang-String"

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

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

toString

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

compareTo

Required features: "java-lang-Enum"

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

getDeclaringClass

Required features: "java-lang-Class"

Trait Implementations

impl AsJValue for Month

impl AsRef<TemporalAccessor> for Month

impl AsRef<TemporalAdjuster> for Month

impl AsValidJObjectAndEnv for Month

impl Deref for Month

type Target = Enum

The resulting type after dereferencing.

impl JniType for Month

Auto Trait Implementations

impl RefUnwindSafe for Month

impl !Send for Month

impl !Sync for Month

impl Unpin for Month

impl UnwindSafe for Month

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.