Code example for AtomicLong

Methods: compareAndSet

0
		return myAtomic.addAndGet(delta);
	} 
 
	@Override 
	public boolean compareAndSet(long expect, long update) {
		return myAtomic.compareAndSet(expect, update);
	} 
 
	@Override 
	public long decrementAndGet() { 
		return myAtomic.decrementAndGet();
	} 
 
	@Override 
	public long get() { 
		return myAtomic.get();
	} 
 
	@Override 
	public long getAndAdd(long delta) {
Contextual code suggestions in your IDE  Get Codota for Java