[−]Struct jni_android_sys::java::util::concurrent::atomic::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]
__jni_env: &'env Env,
arg0: i64
) -> Result<Local<'env, AtomicLong>, Local<'env, Throwable>>
pub fn new<'env>(
__jni_env: &'env Env
) -> Result<Local<'env, AtomicLong>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env
) -> Result<Local<'env, AtomicLong>, Local<'env, Throwable>>
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]
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
pub fn getAndSet<'env>(
&'env self,
arg0: i64
) -> Result<i64, Local<'env, Throwable>>
[src]
&'env self,
arg0: i64
) -> Result<i64, Local<'env, Throwable>>
pub fn compareAndSet<'env>(
&'env self,
arg0: i64,
arg1: i64
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: i64
) -> Result<bool, Local<'env, Throwable>>
pub fn weakCompareAndSet<'env>(
&'env self,
arg0: i64,
arg1: i64
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: i64
) -> Result<bool, Local<'env, Throwable>>
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]
&'env self,
arg0: i64
) -> Result<i64, Local<'env, Throwable>>
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]
&'env self,
arg0: i64
) -> Result<i64, Local<'env, Throwable>>
pub fn getAndUpdate<'env>(
&'env self,
arg0: impl Into<Option<&'env LongUnaryOperator>>
) -> Result<i64, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env LongUnaryOperator>>
) -> Result<i64, Local<'env, Throwable>>
Required features: "java-util-function-LongUnaryOperator"
pub fn updateAndGet<'env>(
&'env self,
arg0: impl Into<Option<&'env LongUnaryOperator>>
) -> Result<i64, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env LongUnaryOperator>>
) -> Result<i64, Local<'env, Throwable>>
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]
&'env self,
arg0: i64,
arg1: impl Into<Option<&'env LongBinaryOperator>>
) -> Result<i64, Local<'env, Throwable>>
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]
&'env self,
arg0: i64,
arg1: impl Into<Option<&'env LongBinaryOperator>>
) -> Result<i64, Local<'env, Throwable>>
Required features: "java-util-function-LongBinaryOperator"
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 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
fn as_ref(&self) -> &Serializable
impl AsValidJObjectAndEnv for AtomicLong
impl Deref for AtomicLong
impl JniType for AtomicLong
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for AtomicLong
impl !Send for AtomicLong
impl !Sync for AtomicLong
impl Unpin for AtomicLong
impl UnwindSafe for AtomicLong
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>,