Constructor and Description |
---|
CounterImpl() |
Modifier and Type | Method and Description |
---|---|
void |
decrement()
Decrement
this by 1. |
void |
decrement(long n)
Decrement
this by n . |
long |
getCount()
Returns the current value.
|
void |
increment()
Increment
this by 1. |
void |
increment(long n)
Increment
this by n . |
public CounterImpl()
public void increment(long n)
Counter
this
by n
.public void decrement(long n)
Counter
this
by n
.Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.