[]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>>>[src]

now

Required features: "java-time-Year"

pub fn now_zone_id<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env ZoneId>>
) -> Result<Option<Local<'env, Year>>>
[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>>>
[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>>>
[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>>>
[src]

from

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

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

parse

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

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

parse

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

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

pub fn get_value<'env>(&'env self) -> Result<i32>[src]

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

isSupported

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

pub fn is_supported_temporal_unit<'env>(
    &'env self,
    arg0: impl Into<Option<&'env TemporalUnit>>
) -> Result<bool>
[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>>>
[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>
[src]

get

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

pub fn get_long<'env>(
    &'env self,
    arg0: impl Into<Option<&'env TemporalField>>
) -> Result<i64>
[src]

getLong

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

pub fn is_leap<'env>(&'env self) -> Result<bool>[src]

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

isValidMonthDay

Required features: "java-time-MonthDay"

pub fn length<'env>(&'env self) -> Result<i32>[src]

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

with

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

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

with

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

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

plus

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

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

plus

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

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

plusYears

Required features: "java-time-Year"

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

minus

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

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

minus

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

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

minusYears

Required features: "java-time-Year"

pub fn query<'env>(
    &'env self,
    arg0: impl Into<Option<&'env TemporalQuery>>
) -> Result<Option<Local<'env, Object>>>
[src]

query

Required features: "java-lang-Object", "java-time-temporal-TemporalQuery"

pub fn adjust_into<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Temporal>>
) -> Result<Option<Local<'env, Temporal>>>
[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>
[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>>>
[src]

format

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

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

atDay

Required features: "java-time-LocalDate"

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

atMonth

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

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

atMonth

Required features: "java-time-YearMonth"

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

atMonthDay

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

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

compareTo

Required features: "java-time-Year"

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

isAfter

Required features: "java-time-Year"

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

isBefore

Required features: "java-time-Year"

pub fn equals<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<bool>
[src]

equals

Required features: "java-lang-Object"

pub fn hash_code<'env>(&'env self) -> Result<i32>[src]

pub fn to_string<'env>(&'env self) -> Result<Option<Local<'env, String>>>[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 get_class<'env>(&'env self) -> Result<Option<Local<'env, Class>>>[src]

getClass

Required features: "java-lang-Class"

pub fn hash_code<'env>(&'env self) -> Result<i32>[src]

pub fn equals<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<bool>
[src]

equals

Required features: "java-lang-Object"

pub fn to_string<'env>(&'env self) -> Result<Option<Local<'env, String>>>[src]

toString

Required features: "java-lang-String"

pub fn notify<'env>(&'env self) -> Result<()>[src]

pub fn notify_all<'env>(&'env self) -> Result<()>[src]

pub fn wait_long<'env>(&'env self, arg0: i64) -> Result<()>[src]

pub fn wait_long_int<'env>(&'env self, arg0: i64, arg1: i32) -> Result<()>[src]

pub fn wait<'env>(&'env self) -> Result<()>[src]

Trait Implementations

impl AsRef<Temporal> for Year

impl AsRef<TemporalAdjuster> for Year

impl AsRef<Comparable> for Year

impl AsRef<Serializable> for Year

impl Deref for Year

type Target = Object

The resulting type after dereferencing.

impl AsValidJObjectAndEnv for Year

impl AsJValue for Year

Auto Trait Implementations

impl !Sync for Year

impl Unpin for Year

impl !Send for Year

impl UnwindSafe for Year

impl RefUnwindSafe for Year

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for 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.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]