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 void increment()
Counter
this
by 1.public void increment(long n)
Counter
this
by n
.public void decrement()
Counter
this
by 1.public void decrement(long n)
Counter
this
by n
.Copyright © 2007–2019 Cloudera. All rights reserved.