Package org.apache.commons.io.file
Interface Counters.Counter
-
- Enclosing class:
- Counters
public static interface Counters.CounterCounts using a number.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidadd(long val)Adds the given number to this counter.longget()Gets the counter as a long.java.math.BigIntegergetBigInteger()Gets the counter as a BigInteger.java.lang.LonggetLong()Gets the counter as a Long.voidincrement()Adds one to this counter.default voidreset()Resets this count to 0.
-
-
-
Method Detail
-
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
java.math.BigInteger getBigInteger()
Gets the counter as a BigInteger.- Returns:
- the counter as a BigInteger.
-
getLong
java.lang.Long getLong()
Gets the counter as a Long.- Returns:
- the counter as a Long.
-
increment
void increment()
Adds one to this counter.
-
reset
default void reset()
Resets this count to 0.
-
-