title: Are nested method calls of AtomicInteger also atomic in java
body: <p>Would this operation be atomic or is there a chance of data race in between?</p>
  
  <pre><code>atomicInteger.set(-atomicInteger.get());
  </code></pre>
  
  <p>If there is a data race, how to negate an <code>AtomicInteger</code> atomically?</p>