public class AtomicCounter extends Object
| Constructor and Description |
|---|
AtomicCounter()
Constructs a new AtomicInteger.
|
AtomicCounter(int value)
Constructs a new AtomicInteger
with a given initial value.
|
| Modifier and Type | Method and Description |
|---|---|
int |
get()
Returns the value of this AtomicInteger.
|
int |
increment()
Increments this AtomicInteger by one.
|
Copyright © 2017. All rights reserved.