[]Struct jni_android_sys::java::time::Period

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

public final class Period

Required feature: "java-time-Period"

Methods

impl Period

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

ofYears

Required features: "java-time-Period"

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

ofMonths

Required features: "java-time-Period"

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

ofWeeks

Required features: "java-time-Period"

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

ofDays

Required features: "java-time-Period"

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

of

Required features: "java-time-Period"

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

from

Required features: "java-time-Period", "java-time-temporal-TemporalAmount"

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

parse

Required features: "java-lang-CharSequence", "java-time-Period"

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

between

Required features: "java-time-LocalDate", "java-time-Period"

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

get

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

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

getUnits

Required features: "java-util-List"

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

getChronology

Required features: "java-time-chrono-IsoChronology"

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

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

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

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

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

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

withYears

Required features: "java-time-Period"

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

withMonths

Required features: "java-time-Period"

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

withDays

Required features: "java-time-Period"

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

plus

Required features: "java-time-Period", "java-time-temporal-TemporalAmount"

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

plusYears

Required features: "java-time-Period"

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

plusMonths

Required features: "java-time-Period"

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

plusDays

Required features: "java-time-Period"

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

minus

Required features: "java-time-Period", "java-time-temporal-TemporalAmount"

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

minusYears

Required features: "java-time-Period"

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

minusMonths

Required features: "java-time-Period"

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

minusDays

Required features: "java-time-Period"

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

multipliedBy

Required features: "java-time-Period"

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

negated

Required features: "java-time-Period"

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

normalized

Required features: "java-time-Period"

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

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

addTo

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

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

subtractFrom

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

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

toString

Required features: "java-lang-String"

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

get public static final ZERO

Required feature: "java-time-Period"

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 Period

impl AsRef<ChronoPeriod> for Period

impl AsRef<Serializable> for Period

impl AsValidJObjectAndEnv for Period

impl Deref for Period

type Target = Object

The resulting type after dereferencing.

impl JniType for Period

Auto Trait Implementations

impl RefUnwindSafe for Period

impl !Send for Period

impl !Sync for Period

impl Unpin for Period

impl UnwindSafe for Period

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.