[−]Struct jni_android_sys::java::util::concurrent::atomic::AtomicInteger
public class AtomicInteger
Required feature: "java-util-concurrent-atomic-AtomicInteger"
Methods
impl AtomicInteger
pub fn new_int<'env>(
__jni_env: &'env Env,
arg0: i32
) -> Result<Local<'env, AtomicInteger>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: i32
) -> Result<Local<'env, AtomicInteger>, Local<'env, Throwable>>
pub fn new<'env>(
__jni_env: &'env Env
) -> Result<Local<'env, AtomicInteger>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env
) -> Result<Local<'env, AtomicInteger>, Local<'env, Throwable>>
pub fn get<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn set<'env>(&'env self, arg0: i32) -> Result<(), Local<'env, Throwable>>
[src]
pub fn lazySet<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn getAndSet<'env>(
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn compareAndSet<'env>(
&'env self,
arg0: i32,
arg1: i32
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: i32
) -> Result<bool, Local<'env, Throwable>>
pub fn weakCompareAndSet<'env>(
&'env self,
arg0: i32,
arg1: i32
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: i32
) -> Result<bool, Local<'env, Throwable>>
pub fn getAndIncrement<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn getAndDecrement<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn getAndAdd<'env>(
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn incrementAndGet<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn decrementAndGet<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn addAndGet<'env>(
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn getAndUpdate<'env>(
&'env self,
arg0: impl Into<Option<&'env IntUnaryOperator>>
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env IntUnaryOperator>>
) -> Result<i32, Local<'env, Throwable>>
Required features: "java-util-function-IntUnaryOperator"
pub fn updateAndGet<'env>(
&'env self,
arg0: impl Into<Option<&'env IntUnaryOperator>>
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env IntUnaryOperator>>
) -> Result<i32, Local<'env, Throwable>>
Required features: "java-util-function-IntUnaryOperator"
pub fn getAndAccumulate<'env>(
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env IntBinaryOperator>>
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env IntBinaryOperator>>
) -> Result<i32, Local<'env, Throwable>>
Required features: "java-util-function-IntBinaryOperator"
pub fn accumulateAndGet<'env>(
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env IntBinaryOperator>>
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env IntBinaryOperator>>
) -> Result<i32, Local<'env, Throwable>>
Required features: "java-util-function-IntBinaryOperator"
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 AtomicInteger
impl AsRef<Serializable> for AtomicInteger
fn as_ref(&self) -> &Serializable
impl AsValidJObjectAndEnv for AtomicInteger
impl Deref for AtomicInteger
impl JniType for AtomicInteger
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for AtomicInteger
impl !Send for AtomicInteger
impl !Sync for AtomicInteger
impl Unpin for AtomicInteger
impl UnwindSafe for AtomicInteger
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>,