[]Struct jni_android_sys::java::sql::Date

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

public class Date

Required feature: "java-sql-Date"

Methods

impl Date

pub fn new_int_int_int<'env>(
    __jni_env: &'env Env,
    arg0: i32,
    arg1: i32,
    arg2: i32
) -> Result<Local<'env, Date>, Local<'env, Throwable>>
[src]

Deprecated

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

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

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

valueOf

Required features: "java-lang-String", "java-sql-Date"

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

toString

Required features: "java-lang-String"

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

Deprecated

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

Deprecated

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

Deprecated

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

Deprecated

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

Deprecated

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

Deprecated

Methods from Deref<Target = Date>

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

clone

Required features: "java-lang-Object"

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

Deprecated

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

Deprecated

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

Deprecated

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

Deprecated

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

Deprecated

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

Deprecated

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

Deprecated

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

Deprecated

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

Deprecated

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

Deprecated

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

Deprecated

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

Deprecated

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

Deprecated

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

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

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

before

Required features: "java-util-Date"

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

after

Required features: "java-util-Date"

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

compareTo

Required features: "java-util-Date"

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

Deprecated

toLocaleString

Required features: "java-lang-String"

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

Deprecated

toGMTString

Required features: "java-lang-String"

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

Deprecated

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

toInstant

Required features: "java-time-Instant"

Trait Implementations

impl AsJValue for Date

impl AsValidJObjectAndEnv for Date

impl Deref for Date

type Target = Date

The resulting type after dereferencing.

impl JniType for Date

Auto Trait Implementations

impl RefUnwindSafe for Date

impl !Send for Date

impl !Sync for Date

impl Unpin for Date

impl UnwindSafe for Date

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.