[]Struct jni_android_sys::javax::xml::datatype::Duration

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

public class Duration

Required feature: "javax-xml-datatype-Duration"

Methods

impl Duration

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

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

getXMLSchemaType

Required features: "javax-xml-namespace-QName"

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

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

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

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

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

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

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

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

getTimeInMillis

Required features: "java-util-Calendar"

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

getTimeInMillis

Required features: "java-util-Date"

pub fn getField<'env>(
    &'env self,
    arg0: impl Into<Option<&'env DatatypeConstants_Field>>
) -> Result<Option<Local<'env, Number>>, Local<'env, Throwable>>
[src]

getField

Required features: "java-lang-Number", "javax-xml-datatype-DatatypeConstants_Field"

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

isSet

Required features: "javax-xml-datatype-DatatypeConstants_Field"

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

add

Required features: "javax-xml-datatype-Duration"

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

addTo

Required features: "java-util-Calendar"

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

addTo

Required features: "java-util-Date"

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

subtract

Required features: "javax-xml-datatype-Duration"

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

multiply

Required features: "javax-xml-datatype-Duration"

pub fn multiply_BigDecimal<'env>(
    &'env self,
    arg0: impl Into<Option<&'env BigDecimal>>
) -> Result<Option<Local<'env, Duration>>, Local<'env, Throwable>>
[src]

multiply

Required features: "java-math-BigDecimal", "javax-xml-datatype-Duration"

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

negate

Required features: "javax-xml-datatype-Duration"

pub fn normalizeWith<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Calendar>>
) -> Result<Option<Local<'env, Duration>>, Local<'env, Throwable>>
[src]

normalizeWith

Required features: "java-util-Calendar", "javax-xml-datatype-Duration"

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

compare

Required features: "javax-xml-datatype-Duration"

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

isLongerThan

Required features: "javax-xml-datatype-Duration"

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

isShorterThan

Required features: "javax-xml-datatype-Duration"

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 Duration

impl AsValidJObjectAndEnv for Duration

impl Deref for Duration

type Target = Object

The resulting type after dereferencing.

impl JniType for Duration

Auto Trait Implementations

impl RefUnwindSafe for Duration

impl !Send for Duration

impl !Sync for Duration

impl Unpin for Duration

impl UnwindSafe for Duration

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.