[]Struct jni_android_sys::java::time::Year

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

public final class Year

Required feature: "java-time-Year"

Methods

impl Year

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

now

Required features: "java-time-Year"

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

now

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

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

now

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

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

of

Required features: "java-time-Year"

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

from

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

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

parse

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

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, Year>>, Local<'env, Throwable>>
[src]

parse

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

pub fn isLeap_long<'env>(
    __jni_env: &'env Env,
    arg0: i64
) -> Result<bool, Local<'env, Throwable>>
[src]

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

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

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

isValidMonthDay

Required features: "java-time-MonthDay"

pub fn length<'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, Year>>, Local<'env, Throwable>>
[src]

with

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

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

with

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

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

plus

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

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

plus

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

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

plusYears

Required features: "java-time-Year"

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

minus

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

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

minus

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

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

minusYears

Required features: "java-time-Year"

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

atMonth

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

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

atMonth

Required features: "java-time-YearMonth"

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

atMonthDay

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

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

compareTo

Required features: "java-time-Year"

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

isAfter

Required features: "java-time-Year"

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

isBefore

Required features: "java-time-Year"

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 const MAX_VALUE: i32[src]

public static final MAX_VALUE

pub const MIN_VALUE: i32[src]

public static final MIN_VALUE

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 Year

impl AsRef<Comparable> for Year

impl AsRef<Serializable> for Year

impl AsRef<Temporal> for Year

impl AsRef<TemporalAdjuster> for Year

impl AsValidJObjectAndEnv for Year

impl Deref for Year

type Target = Object

The resulting type after dereferencing.

impl JniType for Year

Auto Trait Implementations

impl RefUnwindSafe for Year

impl !Send for Year

impl !Sync for Year

impl Unpin for Year

impl UnwindSafe for Year

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.