Code example for AtomicLong

Methods: addAndGet

0
		myAtomic = new AtomicLong();
		myName = myAtomic.toString();
	} 
	 
	public long addAddGet(long delta) {
		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();