|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.wimpi.modbus.util.AtomicCounter
public class AtomicCounter
Provides an atomic integer.
Constructor Summary | |
---|---|
AtomicCounter()
Constructs a new AtomicInteger. |
|
AtomicCounter(int value)
Constructs a new AtomicInteger with a given initial value. |
Method Summary | |
---|---|
int |
get()
Returns the value of this AtomicInteger. |
int |
increment()
Increments this AtomicInteger by one. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AtomicCounter()
public AtomicCounter(int value)
value
- the initial value.Method Detail |
---|
public int increment()
public int get()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |