[−]Struct jni_android_sys::java::time::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]
__jni_env: &'env Env,
arg0: i32
) -> Result<Option<Local<'env, Period>>, Local<'env, Throwable>>
Required features: "java-time-Period"
pub fn ofMonths<'env>(
__jni_env: &'env Env,
arg0: i32
) -> Result<Option<Local<'env, Period>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: i32
) -> Result<Option<Local<'env, Period>>, Local<'env, Throwable>>
Required features: "java-time-Period"
pub fn ofWeeks<'env>(
__jni_env: &'env Env,
arg0: i32
) -> Result<Option<Local<'env, Period>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: i32
) -> Result<Option<Local<'env, Period>>, Local<'env, Throwable>>
Required features: "java-time-Period"
pub fn ofDays<'env>(
__jni_env: &'env Env,
arg0: i32
) -> Result<Option<Local<'env, Period>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: i32
) -> Result<Option<Local<'env, Period>>, Local<'env, Throwable>>
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]
__jni_env: &'env Env,
arg0: i32,
arg1: i32,
arg2: i32
) -> Result<Option<Local<'env, Period>>, Local<'env, Throwable>>
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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env TemporalAmount>>
) -> Result<Option<Local<'env, Period>>, Local<'env, Throwable>>
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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env CharSequence>>
) -> Result<Option<Local<'env, Period>>, Local<'env, Throwable>>
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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env LocalDate>>,
arg1: impl Into<Option<&'env LocalDate>>
) -> Result<Option<Local<'env, Period>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env TemporalUnit>>
) -> Result<i64, Local<'env, Throwable>>
Required features: "java-time-temporal-TemporalUnit"
pub fn getUnits<'env>(
&'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
Required features: "java-util-List"
pub fn getChronology<'env>(
&'env self
) -> Result<Option<Local<'env, IsoChronology>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, IsoChronology>>, Local<'env, Throwable>>
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]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, Period>>, Local<'env, Throwable>>
Required features: "java-time-Period"
pub fn withMonths<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, Period>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, Period>>, Local<'env, Throwable>>
Required features: "java-time-Period"
pub fn withDays<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, Period>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, Period>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env TemporalAmount>>
) -> Result<Option<Local<'env, Period>>, Local<'env, Throwable>>
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]
&'env self,
arg0: i64
) -> Result<Option<Local<'env, Period>>, Local<'env, Throwable>>
Required features: "java-time-Period"
pub fn plusMonths<'env>(
&'env self,
arg0: i64
) -> Result<Option<Local<'env, Period>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i64
) -> Result<Option<Local<'env, Period>>, Local<'env, Throwable>>
Required features: "java-time-Period"
pub fn plusDays<'env>(
&'env self,
arg0: i64
) -> Result<Option<Local<'env, Period>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i64
) -> Result<Option<Local<'env, Period>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env TemporalAmount>>
) -> Result<Option<Local<'env, Period>>, Local<'env, Throwable>>
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]
&'env self,
arg0: i64
) -> Result<Option<Local<'env, Period>>, Local<'env, Throwable>>
Required features: "java-time-Period"
pub fn minusMonths<'env>(
&'env self,
arg0: i64
) -> Result<Option<Local<'env, Period>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i64
) -> Result<Option<Local<'env, Period>>, Local<'env, Throwable>>
Required features: "java-time-Period"
pub fn minusDays<'env>(
&'env self,
arg0: i64
) -> Result<Option<Local<'env, Period>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i64
) -> Result<Option<Local<'env, Period>>, Local<'env, Throwable>>
Required features: "java-time-Period"
pub fn multipliedBy_int<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, Period>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, Period>>, Local<'env, Throwable>>
Required features: "java-time-Period"
pub fn negated<'env>(
&'env self
) -> Result<Option<Local<'env, Period>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Period>>, Local<'env, Throwable>>
Required features: "java-time-Period"
pub fn normalized<'env>(
&'env self
) -> Result<Option<Local<'env, Period>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Period>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Temporal>>
) -> Result<Option<Local<'env, Temporal>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Temporal>>
) -> Result<Option<Local<'env, Temporal>>, Local<'env, Throwable>>
Required features: "java-time-temporal-Temporal"
pub fn equals<'env>(
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
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]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
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]
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-Object"
pub fn toString<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
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]
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
pub fn wait_long_int<'env>(
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
pub fn wait<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
Trait Implementations
impl AsJValue for Period
impl AsRef<ChronoPeriod> for Period
fn as_ref(&self) -> &ChronoPeriod
impl AsRef<Serializable> for Period
fn as_ref(&self) -> &Serializable
impl AsValidJObjectAndEnv for Period
impl Deref for Period
impl JniType for Period
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,