[]Struct jni_android_sys::java::time::DayOfWeek

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

public enum DayOfWeek

Required feature: "java-time-DayOfWeek"

Methods

impl DayOfWeek

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

values

Required features: "java-time-DayOfWeek"

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

valueOf

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

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

of

Required features: "java-time-DayOfWeek"

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

from

Required features: "java-time-DayOfWeek", "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, DayOfWeek>>, Local<'env, Throwable>>
[src]

plus

Required features: "java-time-DayOfWeek"

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

minus

Required features: "java-time-DayOfWeek"

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 MONDAY<'env>(env: &'env Env) -> Option<Local<'env, DayOfWeek>>[src]

get public static final MONDAY

Required feature: "java-time-DayOfWeek"

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

get public static final TUESDAY

Required feature: "java-time-DayOfWeek"

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

get public static final WEDNESDAY

Required feature: "java-time-DayOfWeek"

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

get public static final THURSDAY

Required feature: "java-time-DayOfWeek"

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

get public static final FRIDAY

Required feature: "java-time-DayOfWeek"

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

get public static final SATURDAY

Required feature: "java-time-DayOfWeek"

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

get public static final SUNDAY

Required feature: "java-time-DayOfWeek"

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 DayOfWeek

impl AsRef<TemporalAccessor> for DayOfWeek

impl AsRef<TemporalAdjuster> for DayOfWeek

impl AsValidJObjectAndEnv for DayOfWeek

impl Deref for DayOfWeek

type Target = Enum

The resulting type after dereferencing.

impl JniType for DayOfWeek

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.