public class AtomicLong extends Number implements Serializable
AtomicLong
. It's a thin wrapper
around the primitive long
.Constructor and Description |
---|
AtomicLong() |
AtomicLong(long initialValue) |
Modifier and Type | Method and Description |
---|---|
long |
addAndGet(long delta) |
boolean |
compareAndSet(long expect,
long update) |
long |
decrementAndGet() |
double |
doubleValue() |
float |
floatValue() |
long |
get() |
long |
getAndAdd(long delta) |
long |
getAndDecrement() |
long |
getAndIncrement() |
long |
getAndSet(long newValue) |
long |
incrementAndGet() |
int |
intValue() |
void |
lazySet(long newValue) |
long |
longValue() |
void |
set(long newValue) |
String |
toString() |
__decodeAndValidateInt, __decodeNumberString, __parseAndValidateDouble, __parseAndValidateInt, __parseAndValidateLong, byteValue, shortValue
public final long get()
public final void set(long newValue)
public final void lazySet(long newValue)
public final long getAndSet(long newValue)
public final boolean compareAndSet(long expect, long update)
public final long getAndIncrement()
public final long getAndDecrement()
public final long getAndAdd(long delta)
public final long incrementAndGet()
public final long decrementAndGet()
public final long addAndGet(long delta)
public float floatValue()
floatValue
in class Number
public double doubleValue()
doubleValue
in class Number
Copyright © 2018. All rights reserved.