private static final class Counters.BigIntegerCounter extends java.lang.Object implements Counters.Counter
BigInteger number.| Modifier and Type | Field and Description |
|---|---|
private java.math.BigInteger |
value |
| Modifier | Constructor and Description |
|---|---|
private |
BigIntegerCounter() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(long val)
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 val)
Counters.Counteradd in interface Counters.Counterval - 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