private static class Counters.AbstractPathCounters extends java.lang.Object implements Counters.PathCounters
| Modifier and Type | Field and Description |
|---|---|
private Counters.Counter |
byteCounter |
private Counters.Counter |
directoryCounter |
private Counters.Counter |
fileCounter |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractPathCounters(Counters.Counter byteCounter,
Counters.Counter directoryCounter,
Counters.Counter fileCounter)
Constructs a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
Counters.Counter |
getByteCounter()
Gets the byte counter.
|
Counters.Counter |
getDirectoryCounter()
Gets the directory counter.
|
Counters.Counter |
getFileCounter()
Gets the count of visited files.
|
int |
hashCode() |
void |
reset()
Resets the counts to 0.
|
java.lang.String |
toString() |
private final Counters.Counter byteCounter
private final Counters.Counter directoryCounter
private final Counters.Counter fileCounter
protected AbstractPathCounters(Counters.Counter byteCounter, Counters.Counter directoryCounter, Counters.Counter fileCounter)
byteCounter - the byte counter.directoryCounter - the directory counter.fileCounter - the file counter.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic Counters.Counter getByteCounter()
Counters.PathCountersgetByteCounter in interface Counters.PathCounterspublic Counters.Counter getDirectoryCounter()
Counters.PathCountersgetDirectoryCounter in interface Counters.PathCounterspublic Counters.Counter getFileCounter()
getFileCounter in interface Counters.PathCounterspublic int hashCode()
hashCode in class java.lang.Objectpublic void reset()
Counters.PathCountersreset in interface Counters.PathCounterspublic java.lang.String toString()
toString in class java.lang.Object