private static final class Counters.LongCounter extends java.lang.Object implements Counters.Counter
long number.| Modifier and Type | Field and Description |
|---|---|
private long |
value |
| Modifier | Constructor and Description |
|---|---|
private |
LongCounter() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(long add)
Adds the given number to this counter.
|
boolean |
equals(java.lang.Object obj) |
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.
|
int |
hashCode() |
void |
increment()
Adds one to this counter.
|
void |
reset()
Resets this count to 0.
|
java.lang.String |
toString() |
public void add(long add)
Counters.Counteradd in interface Counters.Counteradd - the value to add.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic 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 int hashCode()
hashCode in class java.lang.Objectpublic void increment()
Counters.Counterincrement in interface Counters.Counterpublic void reset()
Counters.Counterreset in interface Counters.Counterpublic java.lang.String toString()
toString in class java.lang.Object