public final class AtomicDouble extends Object
Constructor and Description |
---|
AtomicDouble(double value) |
Modifier and Type | Method and Description |
---|---|
double |
addAndGet(double delta)
Atomically adds the given value to the current value.
|
boolean |
compareAndSet(double expect,
double update) |
double |
get() |
double |
getAndAdd(double delta) |
void |
set(double val) |
String |
toString() |
boolean |
weakCompareAndSet(double expect,
double update) |
public void set(double val)
public double get()
public double getAndAdd(double delta)
public final double addAndGet(double delta)
delta
- the value to addpublic boolean compareAndSet(double expect, double update)
public boolean weakCompareAndSet(double expect, double update)
Copyright © 2017. All rights reserved.