Package org.apache.commons.io.file
Class Counters
java.lang.Object
org.apache.commons.io.file.Counters
Provides counters for files, directories, and sizes, as a visit proceeds.
- Since:
- 2.7
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Counts using a number.static interface
Counts files, directories, and sizes, as a visit proceeds. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Counters.Counter
Returns a new BigInteger Counter.static Counters.PathCounters
Returns a new BigInteger PathCounters.static Counters.Counter
Returns a new long Counter.static Counters.PathCounters
Returns a new BigInteger PathCounters.static Counters.Counter
Returns the no-op Counter.static Counters.PathCounters
Returns the no-op PathCounters.
-
Constructor Details
-
Counters
public Counters()
-
-
Method Details
-
bigIntegerCounter
Returns a new BigInteger Counter.- Returns:
- a new BigInteger Counter.
-
bigIntegerPathCounters
Returns a new BigInteger PathCounters.- Returns:
- a new BigInteger PathCounters.
-
longCounter
Returns a new long Counter.- Returns:
- a new long Counter.
-
longPathCounters
Returns a new BigInteger PathCounters.- Returns:
- a new BigInteger PathCounters.
-
noopCounter
Returns the no-op Counter.- Returns:
- the no-op Counter.
- Since:
- 2.9.0
-
noopPathCounters
Returns the no-op PathCounters.- Returns:
- the no-op PathCounters.
- Since:
- 2.9.0
-