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, waitresetstatic final Counters.NoopCounter INSTANCE
public void add(long add)
Counters.Counteradd in interface Counters.Counteradd - the value to add.public long get()
Counters.Counterget in interface Counters.Counterpublic java.math.BigInteger getBigInteger()
Counters.CountergetBigInteger in interface Counters.Counterpublic java.lang.Long getLong()
Counters.CountergetLong in interface Counters.Counterpublic void increment()
Counters.Counterincrement in interface Counters.Counterpublic java.lang.String toString()
"0", always.toString in class java.lang.Object"0", always.