[]Struct jni_android_sys::java::time::OffsetDateTime

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

public final class OffsetDateTime

Required feature: "java-time-OffsetDateTime"

Methods

impl OffsetDateTime

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

timeLineOrder

Required features: "java-util-Comparator"

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

now

Required features: "java-time-OffsetDateTime"

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

now

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

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

now

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

pub fn of_LocalDate_LocalTime_ZoneOffset<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env LocalDate>>,
    arg1: impl Into<Option<&'env LocalTime>>,
    arg2: impl Into<Option<&'env ZoneOffset>>
) -> Result<Option<Local<'env, OffsetDateTime>>, Local<'env, Throwable>>
[src]

of

Required features: "java-time-LocalDate", "java-time-LocalTime", "java-time-OffsetDateTime", "java-time-ZoneOffset"

pub fn of_LocalDateTime_ZoneOffset<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env LocalDateTime>>,
    arg1: impl Into<Option<&'env ZoneOffset>>
) -> Result<Option<Local<'env, OffsetDateTime>>, Local<'env, Throwable>>
[src]

of

Required features: "java-time-LocalDateTime", "java-time-OffsetDateTime", "java-time-ZoneOffset"

pub fn of_int_int_int_int_int_int_int_ZoneOffset<'env>(
    __jni_env: &'env Env,
    arg0: i32,
    arg1: i32,
    arg2: i32,
    arg3: i32,
    arg4: i32,
    arg5: i32,
    arg6: i32,
    arg7: impl Into<Option<&'env ZoneOffset>>
) -> Result<Option<Local<'env, OffsetDateTime>>, Local<'env, Throwable>>
[src]

of

Required features: "java-time-OffsetDateTime", "java-time-ZoneOffset"

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

ofInstant

Required features: "java-time-Instant", "java-time-OffsetDateTime", "java-time-ZoneId"

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

from

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

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

parse

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

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

parse

Required features: "java-lang-CharSequence", "java-time-OffsetDateTime", "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 getOffset<'env>(
    &'env self
) -> Result<Option<Local<'env, ZoneOffset>>, Local<'env, Throwable>>
[src]

getOffset

Required features: "java-time-ZoneOffset"

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

withOffsetSameLocal

Required features: "java-time-OffsetDateTime", "java-time-ZoneOffset"

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

withOffsetSameInstant

Required features: "java-time-OffsetDateTime", "java-time-ZoneOffset"

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

toLocalDateTime

Required features: "java-time-LocalDateTime"

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

toLocalDate

Required features: "java-time-LocalDate"

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

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

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

getDayOfWeek

Required features: "java-time-DayOfWeek"

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

toLocalTime

Required features: "java-time-LocalTime"

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

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

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

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

with

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

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

with

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

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

withYear

Required features: "java-time-OffsetDateTime"

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

withMonth

Required features: "java-time-OffsetDateTime"

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

withDayOfMonth

Required features: "java-time-OffsetDateTime"

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

withDayOfYear

Required features: "java-time-OffsetDateTime"

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

withHour

Required features: "java-time-OffsetDateTime"

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

withMinute

Required features: "java-time-OffsetDateTime"

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

withSecond

Required features: "java-time-OffsetDateTime"

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

withNano

Required features: "java-time-OffsetDateTime"

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

truncatedTo

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

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

plus

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

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

plus

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

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

plusYears

Required features: "java-time-OffsetDateTime"

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

plusMonths

Required features: "java-time-OffsetDateTime"

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

plusWeeks

Required features: "java-time-OffsetDateTime"

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

plusDays

Required features: "java-time-OffsetDateTime"

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

plusHours

Required features: "java-time-OffsetDateTime"

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

plusMinutes

Required features: "java-time-OffsetDateTime"

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

plusSeconds

Required features: "java-time-OffsetDateTime"

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

plusNanos

Required features: "java-time-OffsetDateTime"

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

minus

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

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

minus

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

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

minusYears

Required features: "java-time-OffsetDateTime"

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

minusMonths

Required features: "java-time-OffsetDateTime"

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

minusWeeks

Required features: "java-time-OffsetDateTime"

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

minusDays

Required features: "java-time-OffsetDateTime"

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

minusHours

Required features: "java-time-OffsetDateTime"

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

minusMinutes

Required features: "java-time-OffsetDateTime"

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

minusSeconds

Required features: "java-time-OffsetDateTime"

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

minusNanos

Required features: "java-time-OffsetDateTime"

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

atZoneSameInstant

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

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

atZoneSimilarLocal

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

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

toOffsetTime

Required features: "java-time-OffsetTime"

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

toZonedDateTime

Required features: "java-time-ZonedDateTime"

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

toInstant

Required features: "java-time-Instant"

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

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

compareTo

Required features: "java-time-OffsetDateTime"

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

isAfter

Required features: "java-time-OffsetDateTime"

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

isBefore

Required features: "java-time-OffsetDateTime"

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

isEqual

Required features: "java-time-OffsetDateTime"

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 MAX<'env>(env: &'env Env) -> Option<Local<'env, OffsetDateTime>>[src]

get public static final MAX

Required feature: "java-time-OffsetDateTime"

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

get public static final MIN

Required feature: "java-time-OffsetDateTime"

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 OffsetDateTime

impl AsRef<Comparable> for OffsetDateTime

impl AsRef<Serializable> for OffsetDateTime

impl AsRef<Temporal> for OffsetDateTime

impl AsRef<TemporalAdjuster> for OffsetDateTime

impl AsValidJObjectAndEnv for OffsetDateTime

impl Deref for OffsetDateTime

type Target = Object

The resulting type after dereferencing.

impl JniType for OffsetDateTime

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.