[]Struct jni_android_sys::java::time::YearMonth

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

public final class YearMonth

Required feature: "java-time-YearMonth"

Methods

impl YearMonth

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

now

Required features: "java-time-YearMonth"

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

now

Required features: "java-time-YearMonth", "java-time-ZoneId"

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

now

Required features: "java-time-Clock", "java-time-YearMonth"

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

of

Required features: "java-time-Month", "java-time-YearMonth"

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

of

Required features: "java-time-YearMonth"

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

from

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

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

parse

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

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

parse

Required features: "java-lang-CharSequence", "java-time-YearMonth", "java-time-format-DateTimeFormatter"

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

isSupported

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

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

isSupported

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

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

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

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

getMonth

Required features: "java-time-Month"

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

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

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

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

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

with

Required features: "java-time-YearMonth", "java-time-temporal-TemporalAdjuster"

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

with

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

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

withYear

Required features: "java-time-YearMonth"

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

withMonth

Required features: "java-time-YearMonth"

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

plus

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

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

plus

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

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

plusYears

Required features: "java-time-YearMonth"

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

plusMonths

Required features: "java-time-YearMonth"

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

minus

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

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

minus

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

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

minusYears

Required features: "java-time-YearMonth"

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

minusMonths

Required features: "java-time-YearMonth"

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 until<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Temporal>>,
    arg1: impl Into<Option<&'env TemporalUnit>>
) -> Result<i64, Local<'env, Throwable>>
[src]

until

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

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

format

Required features: "java-lang-String", "java-time-format-DateTimeFormatter"

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

atDay

Required features: "java-time-LocalDate"

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

atEndOfMonth

Required features: "java-time-LocalDate"

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

compareTo

Required features: "java-time-YearMonth"

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

isAfter

Required features: "java-time-YearMonth"

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

isBefore

Required features: "java-time-YearMonth"

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"

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 YearMonth

impl AsRef<Comparable> for YearMonth

impl AsRef<Serializable> for YearMonth

impl AsRef<Temporal> for YearMonth

impl AsRef<TemporalAdjuster> for YearMonth

impl AsValidJObjectAndEnv for YearMonth

impl Deref for YearMonth

type Target = Object

The resulting type after dereferencing.

impl JniType for YearMonth

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.