private static final class Counters.NoopCounter extends java.lang.Object implements Counters.Counter
Modifier and Type | Field and Description |
---|---|
(package private) static Counters.NoopCounter |
INSTANCE |
Modifier | Constructor and Description |
---|---|
private |
NoopCounter() |
Modifier and Type | Method and Description |
---|---|
void |
add(long add)
Adds the given number to this counter.
|
long |
get()
Gets the counter as a long.
|
java.math.BigInteger |
getBigInteger()
Gets the counter as a BigInteger.
|
java.lang.Long |
getLong()
Gets the counter as a Long.
|
void |
increment()
Adds one to this counter.
|
java.lang.String |
toString()
Returns
"0" , always. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
reset
static final Counters.NoopCounter INSTANCE
public void add(long add)
Counters.Counter
add
in interface Counters.Counter
add
- the value to add.public long get()
Counters.Counter
get
in interface Counters.Counter
public java.math.BigInteger getBigInteger()
Counters.Counter
getBigInteger
in interface Counters.Counter
public java.lang.Long getLong()
Counters.Counter
getLong
in interface Counters.Counter
public void increment()
Counters.Counter
increment
in interface Counters.Counter
public java.lang.String toString()
"0"
, always.toString
in class java.lang.Object
"0"
, always.