Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.atomic.AtomicLong |
count |
Modifier | Constructor and Description |
---|---|
private |
AtomicCounter() |
Modifier and Type | Method and Description |
---|---|
long |
addAndGet(long delta)
Adds the given delta to the counters current value
|
long |
get()
Returns the counters current value
|
newCounter, newCounter
public long addAndGet(long delta)
Counter