[]Struct jni_android_sys::java::util::concurrent::atomic::DoubleAccumulator

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

public class DoubleAccumulator

Required feature: "java-util-concurrent-atomic-DoubleAccumulator"

Methods

impl DoubleAccumulator

pub fn new<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env DoubleBinaryOperator>>,
    arg1: f64
) -> Result<Local<'env, DoubleAccumulator>, Local<'env, Throwable>>
[src]

DoubleAccumulator

Required features: "java-util-function-DoubleBinaryOperator"

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

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

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

pub fn getThenReset<'env>(&'env self) -> Result<f64, 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 doubleValue<'env>(&'env self) -> Result<f64, Local<'env, Throwable>>[src]

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

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

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

Methods from Deref<Target = Number>

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

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

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

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

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

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

Trait Implementations

impl AsJValue for DoubleAccumulator

impl AsRef<Serializable> for DoubleAccumulator

impl AsValidJObjectAndEnv for DoubleAccumulator

impl Deref for DoubleAccumulator

type Target = Number

The resulting type after dereferencing.

impl JniType for DoubleAccumulator

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.