MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / getAsInt

Method getAsInt

lowlevel/AtomicIntegerTest.java:12–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10public class AtomicIntegerTest extends IntTestable {
11 private AtomicInteger i = new AtomicInteger(0);
12 public int getAsInt() { return i.get(); }
13 @Override
14 public void evenIncrement() { i.addAndGet(2); }
15 public static void main(String[] args) {

Callers

nothing calls this directly

Calls 1

getMethod · 0.65

Tested by

no test coverage detected