Code example for AtomicInteger

Methods: addAndGet

0
	public final int getValue() { 
		return myValue.get();
	} 
 
	public final int increaseValue() { 
		return myValue.addAndGet(5);
	} 
 
	public final int decreaseValue() { 
		return myValue.decrementAndGet();
	} 
 
	public boolean isIncreaseThisTurn() { 
		return myIncreaseThisTurn;
	} 
 
	public void setIncreaseThisTurn(final boolean increaseThisTurn) {
		myIncreaseThisTurn = increaseThisTurn;
	} 
 
	public final Timeline getTimeline() {