Package org.apache.commons.io.file
Interface Counters.Counter
- All Known Implementing Classes:
Counters.BigIntegerCounter
,Counters.LongCounter
- Enclosing class:
- Counters
public static interface Counters.Counter
Counts using a number.
-
Method Details
-
add
void add(long val) Adds the given number to this counter.- Parameters:
val
- the value to add.
-
get
long get()Gets the counter as a long.- Returns:
- the counter as a long.
-
getBigInteger
BigInteger getBigInteger()Gets the counter as a BigInteger.- Returns:
- the counter as a BigInteger.
-
getLong
Long getLong()Gets the counter as a Long.- Returns:
- the counter as a Long.
-
increment
void increment()Adds one to this counter.
-