[−]Struct jni_android_sys::javax::xml::datatype::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]
__jni_env: &'env Env
) -> Result<Local<'env, Duration>, Local<'env, Throwable>>
pub fn getXMLSchemaType<'env>(
&'env self
) -> Result<Option<Local<'env, QName>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, QName>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Calendar>>
) -> Result<i64, Local<'env, Throwable>>
Required features: "java-util-Calendar"
pub fn getTimeInMillis_Date<'env>(
&'env self,
arg0: impl Into<Option<&'env Date>>
) -> Result<i64, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Date>>
) -> Result<i64, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env DatatypeConstants_Field>>
) -> Result<Option<Local<'env, Number>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env DatatypeConstants_Field>>
) -> Result<bool, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Duration>>
) -> Result<Option<Local<'env, Duration>>, Local<'env, Throwable>>
Required features: "javax-xml-datatype-Duration"
pub fn addTo_Calendar<'env>(
&'env self,
arg0: impl Into<Option<&'env Calendar>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Calendar>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-util-Calendar"
pub fn addTo_Date<'env>(
&'env self,
arg0: impl Into<Option<&'env Date>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Date>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Duration>>
) -> Result<Option<Local<'env, Duration>>, Local<'env, Throwable>>
Required features: "javax-xml-datatype-Duration"
pub fn multiply_int<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, Duration>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, Duration>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env BigDecimal>>
) -> Result<Option<Local<'env, Duration>>, Local<'env, Throwable>>
Required features: "java-math-BigDecimal", "javax-xml-datatype-Duration"
pub fn negate<'env>(
&'env self
) -> Result<Option<Local<'env, Duration>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Duration>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Calendar>>
) -> Result<Option<Local<'env, Duration>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Duration>>
) -> Result<i32, Local<'env, Throwable>>
Required features: "javax-xml-datatype-Duration"
pub fn isLongerThan<'env>(
&'env self,
arg0: impl Into<Option<&'env Duration>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Duration>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "javax-xml-datatype-Duration"
pub fn isShorterThan<'env>(
&'env self,
arg0: impl Into<Option<&'env Duration>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Duration>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "javax-xml-datatype-Duration"
pub fn equals<'env>(
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
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]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
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]
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-Object"
pub fn toString<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
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]
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
pub fn wait_long_int<'env>(
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
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
impl JniType for Duration
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,