| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public long | Returns: the value of the counter after decrementingDecrement the counter by given amount |
| public long | Returns: Returns the old valueReturns the value of the counter and sets it to the new value |
| public long | |
| public long | |
| public long | Returns: the value of the counter after incrementingIncrement the counter by given amount |
| public void |
| decrement | back to summary |
|---|---|
| public long decrement() Decrement the counter by 1
| |
| decrement | back to summary |
|---|---|
| public long decrement(long amount) Decrement the counter by given amount
| |
| getAndSet | back to summary |
|---|---|
| public long getAndSet(long newValue) Returns the value of the counter and sets it to the new value
| |
| getValue | back to summary |
|---|---|
| public long getValue() Gets current value of the counter
| |
| increment | back to summary |
|---|---|
| public long increment() Increment the counter by 1
| |
| increment | back to summary |
|---|---|
| public long increment(long amount) Increment the counter by given amount
| |
| setValue | back to summary |
|---|---|
| public void setValue(long newValue) Sets the value of the counter to the supplied value | |