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

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

public class AtomicLong

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

Methods

impl AtomicLong

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

getAndUpdate

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

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

updateAndGet

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

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

getAndAccumulate

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

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

accumulateAndGet

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

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

toString

Required features: "java-lang-String"

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]

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 AtomicLong

impl AsRef<Serializable> for AtomicLong

impl AsValidJObjectAndEnv for AtomicLong

impl Deref for AtomicLong

type Target = Number

The resulting type after dereferencing.

impl JniType for AtomicLong

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.