MCPcopy Create free account
hub / github.com/antlr/codebuff / PureJavaLongAddable

Class PureJavaLongAddable

output/java_guava/1.4.19/LongAddables.java:59–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57 }
58
59 private static final class PureJavaLongAddable extends AtomicLong implements LongAddable {
60 @Override
61 public void increment() {
62 getAndIncrement();
63 }
64
65 @Override
66 public void add(long x) {
67 getAndAdd(x);
68 }
69
70 @Override
71 public long sum() {
72 return get();
73 }
74 }
75}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected