Package org.apache.commons.io.file
Class Counters.NoopCounter
java.lang.Object
org.apache.commons.io.file.Counters.NoopCounter
- All Implemented Interfaces:
Counters.Counter
- Enclosing class:
- Counters
Counts nothing.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
NoopCounter
private NoopCounter()
-
-
Method Details
-
add
public void add(long add) Description copied from interface:Counters.Counter
Adds the given number to this counter.- Specified by:
add
in interfaceCounters.Counter
- Parameters:
add
- the value to add.
-
get
public long get()Description copied from interface:Counters.Counter
Gets the counter as a long.- Specified by:
get
in interfaceCounters.Counter
- Returns:
- the counter as a long.
-
getBigInteger
Description copied from interface:Counters.Counter
Gets the counter as a BigInteger.- Specified by:
getBigInteger
in interfaceCounters.Counter
- Returns:
- the counter as a BigInteger.
-
getLong
Description copied from interface:Counters.Counter
Gets the counter as a Long.- Specified by:
getLong
in interfaceCounters.Counter
- Returns:
- the counter as a Long.
-
increment
public void increment()Description copied from interface:Counters.Counter
Adds one to this counter.- Specified by:
increment
in interfaceCounters.Counter
-