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
Nested ClassesModifier and TypeClassDescriptionprivate static classCounts files, directories, and sizes, as a visit proceeds.private static final classCounts using aBigIntegernumber.private static final classCounts files, directories, and sizes, as a visit proceeds, using BigInteger numbers.static interfaceCounts using a number.private static final classCounts using alongnumber.private static final classCounts files, directories, and sizes, as a visit proceeds, using long numbers.private static final classCounts nothing.private static final classCounts nothing.static interfaceCounts files, directories, and sizes, as a visit proceeds. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Counters.CounterReturns a new BigInteger Counter.static Counters.PathCountersReturns a new BigInteger PathCounters.static Counters.CounterReturns a new long Counter.static Counters.PathCountersReturns a new BigInteger PathCounters.static Counters.CounterReturns the no-op Counter.static Counters.PathCountersReturns 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
-